Ignoring methods in Clover with Eclipse

I'm using Clover with eclipse and I set up a rule to ignore certain methods. In the class it shows the methods greyed out and says they are excluded, however I see that it is still counting that method towards coverage % and showing that method as all red instead of greyed out. How do I get Clover to stop including the method in the coverage % number?

2 answers

1 accepted

This widget could not be displayed.

I have created a CLOV-1108 bug report for this.

As a workaround you can use HTML report - it shows filtered-out methods correctly. Alternatively, you could use ///CLOVER:OFF + ///CLOVER:ON comments to disable certain code blocks from instrumentation.

Thanks for fixing!

This widget could not be displayed.

Thanks for fixing!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 56m ago in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

19 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you