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

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

  •  02-06-2022
  •  | 
  •  

Pregunta

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"/>
¿Fue útil?

Solución

Please see documentation for Ignore Trivial and Ignore Method Annotation

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top