1

显然,今年早些时候,Cobertura 将“IgnoreMethodAnnotation”添加到了他们最新的代码库中。我一直在努力让它工作,并且由于他们网站上缺乏文档,我不知道如何让他们的 ant 任务来做到这一点。有没有人使用过他们添加的这个新功能?我在下面运行的内容,但所有报告仍然具有报告中注释的类。

我尝试过的蚂蚁任务示例:

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

<ignoreMethodAnnotation annotationName="ExcludeFromCoverage"/>
4

1 回答 1

1

请参阅 忽略琐碎忽略方法注释的文档

于 2013-07-24T08:13:30.330 回答