Saturday, 25 September 2010

Grails & Cobertura Bug

Grails & Cobertura - Cobertura does not cover all classes even though there are tests

Found this by accident. It seems like uncompiled classes that are referenced in a Plugin.groovy script are not poperly instrumented when grails test-app --coverage is run.

However if you do "grails compile" then "grails test-app --coverage" everything then works

Wierd but useful to remember!

No comments:

Post a Comment