How can I view clover coverage against code that has changed?

In my maven project, I want to view the clover coverage against code that has changed in my snapshot since the last released version.

Is there a way to accomplish this?

3 answers

0 vote

If you want to just see for which classes code coverage changed the most, then you can simply generate a historical report, which looks like this. In order to have it in Maven, you have to use the clover2:save-history goal together with the clover2:clover and a generateHistorical=true option.

0 vote

If you want to limit your HTML report to contain classes which have been modified since a previous build (using information from a VCS such as git or hg), then you'd have to build such query on your own and next pass list of files to the <clover-report> task (see <fileset> + <testsources> options).

As you are using Maven, you would have to prepare an Ant file with such a custom <clover-report> task and use the reportDescriptor option. Check Creating custom reports for more details.

See also: https://answers.atlassian.com/questions/86543 question.

0 vote

If you would like to perform a logical or arithmetical operation (such as XOR or subtraction) on coverage data from two different builds, then unfortunately such feature is not available right now. A feature request is reported here https://jira.atlassian.com/browse/CLOV-1024.

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

71 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you