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:
<build>
<plugins>
<plugin>
<groupId>org.openclover</groupId>
<artifactId>clover-maven-plugin</artifactId>
<version>4.3.1</version>
</plugin>
</plugins>
</build>
And this is the goal in the Maven config:
clover:setup test clover:aggregate clover:clover clover:check
What am I doing wrong?
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:
See also:
http://openclover.org/doc/manual/latest/kb--openclover-knowledge-base-home.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.