I've had some conversations on the Groovy list about inaccurate branch coverage using Cobertura (you can read it here:
http://groovy.329449.n5.nabble.com/Branch-coverage-issues-td5686725.html)
A solution provided was to run the tests with a jar file on the classpath, which effectively turns the dynamic branching optimizations off. Obviously, I'd like to still run the tests as they will be executed in production also ie without this jar file.
How could I accomplish this in Grails? I'd like two targets - one that runs test-app without the jar, and one that runs test-app -coverage with the jar.
Thoughts?