开发者

How to exclude code from the Clover coverage report?

开发者 https://www.devze.com 2023-04-08 20:34 出处:网络
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技

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

精彩评论

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