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