Archive for November, 2008
Thursday, November 20th, 2008
So it's been bugging me for a while that the action names within a controller always showed up like this on my code coverage reports:
Well, no longer! Version 0.9 of the Grails Code Coverage plugin now does some post processing on the Cobertura reports that replace the Controller.$_closure1 ugliness ...
Posted in grails, plugin | 1 Comment »
Sunday, November 16th, 2008
As pointed out in the docs for the Grails Testing Plugin, constraints often contain a lot of logic for your application and are rarely tested. To help out with that, the Test Template plugin now provides a script that will create a stub of a unit test for you for ...
Posted in grails, plugin, testing | Comments Off
Sunday, November 16th, 2008
The generated controller scaffolding from Grails is a great tool for learning the framework quickly. It provides examples of controllers, controller actions, simple GORM methods on your domain classes, Groovy Server Pages and tag libraries - everything you need to get started - EXCEPT for how to unit test ...
Posted in grails, plugin, testing | Comments Off
Saturday, November 15th, 2008
So you've created your first Grails plugin and notice that you have these _Install.groovy and _Upgrade.groovy files in your plugin scripts directory. "What are these for?" you ask, and promptly remove them - but if utilized them correctly, they're a great way to make sure your plugin works well with ...
Posted in grails, plugin | Comments Off
Wednesday, November 12th, 2008
Last night I presented at the Minneapolis Groovy/Grails User Group meeting about the new Grails Testing Plugin created by Peter Ledbrook and G2One. You can download the presentation in PDF form and browse through the sample code on GitHub (check out the test/unit directory). The plugin makes it really simple ...
Posted in grails, testing | Comments Off