From: Casper B. <cas...@sy...> - 2015-03-25 08:29:09
|
I realize Cobertura is primarily a Java tool (or rather, byte-code tool) but I'm faced with the issue of Cobertura flagging trivial method calls in a Grails (Groovy) application on JDK7 (see attached screenshot). Without knowing much about Cobertura, I speculate that the problem is in Java's virtual by default (and Groovy's dynamic nature i.e. completely lacking the notion of a final/sealed non-virtual method) which means Cobertura always sees the dispatch VTABLE and thus, a branch! This effectually renders Cobertura useless for reporting branch coverage on our Grails/Groovy code, as it flags way too many false positives. Using the ignoreTrivial=true doesn't seem to change much in this aspect, and I can't find an @Ignore annotion for use with. Am I missing something or does anyone have an advice for how to resolve the situation? Med venlig hilsen / Kind regards Casper Bang Systems Engineer |