Grails Code Coverage Plugin 1.1.4 Released!

March 5, 2009 – 9:54 pm

The Grails Code Coverage plugin has been upgraded to work with Grails 1.1 RC2.  Please give it a shot and create JIRA issues (http://jira.codehaus.org/browse/GRAILSPLUGINS/component/13147) if you encounter any problems.

This release of the plugin removes the test-app-cobertura script and utilizes changes in Grails 1.1 RC2 to hook into the test-app script instead.  In order to run coverage, simply install the plugin (grails install-plugin code-coverage) and run “grails test-app”.  There are several other changes in this release as well:
  • Upgraded Cobertura to 1.9
  • Ability to override the default exclusions list
  • Ability to bypass coverage instrumentation and report generation with the -nocoverage flag (e.g. grails test-app -nocoverage)
Full docs available on the Grails.org wiki:  http://www.grails.org/Test+Code+Coverage+Plugin
  1. One Response to “Grails Code Coverage Plugin 1.1.4 Released!”

  2. Fantastic work guys!!! Great.

    I have a question though:

    I have a Category class that references itself as a one to many. I have two integration test files. One to test static constraints and one to test the relationship.

    Anyway, when I run the test I am getting code coverage for static constraints (as a separate Class file Category$__clinit__closure1) and those lines show up green in the html report, but the lines where hasMany and belongsTo relationship is defined, the code does not show up as green, even though the report shows 100% coverage.

    Could you please share your comment. I am new to Grails, so I might be missing something.

    By Ravi Hasija on Oct 24, 2009

Sorry, comments for this entry are closed at this time.