You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi all!
I'm facing some issues about how to check the coverage threshold with openclover maven plugin with a multi-module Maven Project.
I execute the tests with:
mvn clover:setup test clover:aggregate clover:clover
Then, i execute the Log goal with
mvn clover:log
After that, i'm trying to check the coverage with:
mvn clover:check -Dmaven.clover.targetPercentage=XX%
The build fails because clover calculates a different value, from parent project, compared to the HTML Report or Log goal
Here is the output:
INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openclover:clover-maven-plugin:4.3.1:check (default-cli) on project example-parent: Build failed to meet Clover coverage targets: The following coverage targets for null were not met:
[ERROR] Total coverage of 53.5% did not meet target of 100%
[ERROR] -> [Help 1]
What am I doing wrong?
Does Clover check goal require additional steps to work?
Thanks
As you use 'clover:aggregate' it suggests that you have multiple modules in your project, am I correct? Maybe what happens is that clover:check is ran on a different clover.db file.
I suggest the following:
Note that clover:check searches for both cloverDatabase and cloverMergeDatabase
Note that clover:aggregate runs in the last Maven module being built and writes cloverMerge.db to that location. Which means that probably you may want to add cloverMergeDatabase parameter in your root pom to specify the location.
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...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.