From: John W. L. <Joh...@sa...> - 2012-04-27 19:05:23
|
The Groovy compiler adds a lot of branches to the bytecode that it creates. You would have to decompile the generated classes and know the internals of how Groovy works to figure out how to get 100% coverage. The difficulties can be seen by this Bug report that I filed with the Groovy team. http://jira.codehaus.org/browse/GROOVY-3118 They were responsive, but they also said there was a limit to what they could do. John From: David Hay [mailto:da...@le...] Sent: Tuesday, April 24, 2012 4:47 PM To: cob...@li... Subject: [Cobertura-devel] low branch coverage Hi, I am looking for some help understanding the low branch coverage I'm seeing on my Grails 2.0.3 project. I have 100% line coverage, but only 45% branch coverage, even though all possible branches have been tested. I'm attaching a jpg showing the coverage report. Can anyone illuminate me, please? thanks. |