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 report 0% coverage

I've configured OpenClover on Bamboo build server to perform our code coverage, and it works to the point where I get 3 graphs created in the Clover tab.

However, the Total coverage shows as 0% - but the Lines of Code (LOC) and Non-commented Lines of Code (NCLOC) shows up.



This is my pom.xml:


And this is the goal in the Maven config:

clover:setup test clover:aggregate clover:clover clover:check

What am I doing wrong?

1 answer

0 votes

The goal you execute seems correct (unless you run something before, like "mvn compile").

Non-zero value for LOC and NCLOC indicates that Clover instrumented your sources (which means it was able to store information about code structure in its clover.db database). 

Zero value for code coverage indicates a problem with execution of tests with Clover. What kind of tests do you run? Simple JUnits? Selenium/WebDriver tests on an application deployed on Tomcat/Jetty/JBoss? 

Please check build log to see if:

  • at least one test have been executed
  • there are no Clover-related errors in the log (grep for 'CLOVER')

See also: 

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

175 views 2 9
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