开发者

How to exclude code from the Clover coverage report?

Is there any way to hide classes or methods from being included in the Clover code coverage report? We have some proof of concept code along side production quality code in the same direct开发者_JAVA技巧ories. This concept code is being included in the code coverage reports which is skewing our numbers. We were wondering if we could annotate or mark them in such a way that Clover will ignore them when generating the report.

-- Update --

What about using a methodContext against a custom annotation?


I you are using Clover as a Maven plugin, you can configure excluded classes.

<configuration>
  <excludes>
    <exclude>**/*Dull.java</exclude>
  </excludes>
</configuration>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜