OPI Blog
Learn from experts in their fields

Browsing Tags: unit tests

Why your tests may pass locally but fail in Jenkins
The dreaded “works on my machine” test failure not only reduces trust in your automated builds and continuous integration, but could also be the sign of a bug that doesn’t manifest on your machine. I’ve ...
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 ...
Testing Examples for the Facebook SDK Grails Plugin
On a recent client project, I used the Facebook SDK plugin (http://grails.org/plugin/facebook-sdk) to integrate Facebook into our Grails app. I’ve never worked with this plugin before (or done any Facebook development for that matter), so ...
Write Readable Tests with Mockito
A good mocking framework is a must have in any Java developers toolset. Mocking frameworks greatly reduce the amount of code needed to effectively mock dependent interfaces and/or classes. Over the past several years EasyMock ...