Using with Surefire and Failsafe Plugins


I was following this tutorial to genrate Clover combined report for unit tests and Test NG tests. But the report only shows numbers of the failed tests instead of code coverage. Is there a way I can generate a combined code coverage report? Thank you.

1 answer

This widget could not be displayed.

Are you sure you're looking at the right report file ? Clover one should be located (assuming the default location) in a target/site/clover 

Have you called clover:clover  goal? This is the Maven MOJO responsible for producing reports. 

Thank you for the reply. In order to generate integration tests coverage report, I had to deploy the clover.war to another server and run clover instrument. I was able to do it through IntelliJ IDEA by setting up two tomcat servers.

Now I have to integrate this with Bamboo. Is there any tutorials? Thank you.

Well.. There are general tutorials on using Clover:

But I don't think there is any specific tutorial refering to two Tomcat servers. General use Clover use case is to:

* instrument source code
* compile the instrumented source
* run instrumented code 
* generate report out of produced artifatcs

I generally, don't recommend instrumenting the same code twice for different set of tests becasue you'll have to manage the Clover database for generating report. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

513 views 3 18
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