Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Ignoring methods in Clover with Eclipse

Deleted user May 29, 2012

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

1 vote
Answer accepted
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 24, 2012

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.

Deleted user September 16, 2012

Thanks for fixing!

0 votes
Deleted user September 16, 2012

Thanks for fixing!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events