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>
精彩评论