Has anyone used the ant task for Cobertura to exclude annotated java classes?

StackOverflow https://stackoverflow.com/questions/17475050

  •  02-06-2022
  •  | 
  •  

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"/>
Était-ce utile?

La solution

Please see documentation for Ignore Trivial and Ignore Method Annotation

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top