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

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

  •  02-06-2022
  •  | 
  •  

문제

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"/>
도움이 되었습니까?

해결책

Please see documentation for Ignore Trivial and Ignore Method Annotation

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top