OPI Blog
Learn from experts in their fields

Browsing Tags: Testing

Mar 11, 2014
Finding a Buggy Commit Using ‘git bisect’ and ‘curl’ #git
I was tasked with fixing a bug that looks like it was introduced some time ago. The bug was in an unfamiliar area of the code. Although I thought I found the problem, I wanted ...
Jan 10, 2014
The Creatives on Agile and QA teams
“If you are not willing to risk the unusual, you will have to settle for the ordinary.” — Jim Rohn In a recent Slate article about bosses rejecting creativity and thinking outside the box,Berkeley professor ...
Alternative Test Data Strategies for Automation
Bringing automation to a legacy system generally involves many challenges, particularly if your technology stack is diverse. A major sore point that is frequently overlooked, however, is the challenge of having solid test data to ...
Parallel Grails Functional Tests with Geb and Gradle
Browser-based functional tests are a great way to verify a Grails application works fully end-to-end. But since they use a browser, they are slower to run than unit or integration tests. And depending on how ...
Set up a pseudo test suite in Grails while doing a major upgrade
I’m currently working with a large team to upgrade a large Grails 1.3.7 app to 2.2.4. We have  hundreds of tests. Most of the tests are broken, presumably because they have yet to be adapted ...
Oct 29, 2013
Testing Grails With a Travis Build Matrix
Continuous integration testing can be configured to create a build matrix to test multiple configurations of a project using a single build configuration.  This can be useful if you want to test a Grails application with ...
Oct 8, 2013
Migrating to Grails 2.3
I just migrated a grails 2.2 app to grails 2.3. Of course I didn’t read the doc in advance — I (almost) never do. Rather than read the doc, I created a project with the ...
Sep 24, 2013
Rollback Multiple Datasources in Grails Integration Tests
Grails GORM has solid support for using multiple datasources in both 1.3.x with the Datasources plugin, and 2.x with built-in multi-datasource support. This feature allows you to partition your Domain classes and Services to attach ...
Sep 18, 2013
The Benefits of Using assertThat over other Assert Methods in Unit Tests
Introduction When Junit 4 was released a number of things changed, most notably the use of the test annotation so that there is no longer a need to extend TestCase and name methods starting with ...
Feb 8, 2013
Grails testing – mocking 3rd-party services
When working with external services in a Grails project, say a service that uploads files to Amazon S3 or verifies bank account information, you’ll likely want to avoid accessing these services in standard integration and ...