3

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 directories. 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?

TERACytE
  • 7,553
  • 13
  • 75
  • 111

1 Answers1

1

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

<configuration>
  <excludes>
    <exclude>**/*Dull.java</exclude>
  </excludes>
</configuration>
YMomb
  • 2,366
  • 1
  • 27
  • 36
  • Thanks YMomb. I am leaning towards that for classes but was hoping for a more universal solution that would also exclude methods. – TERACytE Sep 28 '11 at 18:58