Question

Apparently earlier this year Cobertura added "IgnoreMethodAnnotation" to their latest code base. I've been trying to get this to work, and thanks to the lack of documentation on their site have no idea how to get their ant task to do this. Has anyone used this new feature they added? What I have below runs but the reports all still have the class that is annotated in the report.

Sample of my ant task I've tried:

<cobertura-instrument todir="build/instrumented" ignoreTrivial="true">
<classpath >
<path refid="classpath"/>
</classpath>

<ignoreMethodAnnotation annotationName="ExcludeFromCoverage"/>
Was it helpful?

Solution

Please see documentation for Ignore Trivial and Ignore Method Annotation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top