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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Clover : Statement and Method codecoverage

In the nice html code coverage that clover generates , I did not see any specific code coverage for method and statement. I just have one number that is overall code coverage. I believe we would like to get the individual percentage for method and statement. I was actually surprised to find not to find one on the code coverage report. Do people use method or statement code coverage , if so how can I get it through clover html coverage report.

2 answers

1 accepted

0 votes
Answer accepted

If you would like to customize Clover report in Maven, please read this article:

1 vote

Hi Girish,

Yes, it's possible to have extra coverage metrics in the HTML report. You have to use <clover-report> task and declare the <current>/<columns> element in it.

For example:

   &lt;current outfile="report/html"&gt;
      &lt;format type="html"/&gt;
         &lt;coveredMethods format="%"/&gt;
         &lt;coveredStatements format="%"/&gt;
         &lt;coveredBranches format="%"/&gt;
         &lt;coveredElements format="bar"/&gt;


Thanks , I will try this out. So this part will go in the pom right ? and I assume this extra data will be in addition to normal report will generate.

So this part will go in the pom right?

No, the snippet above is for Ant. For Maven, see my second answer.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

146 views 1 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you