Using with Surefire and Failsafe Plugins

Hi,

I was following this tutorial https://confluence.atlassian.com/clover/using-with-surefire-and-failsafe-plugins-294489218.html 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

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
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
Published Apr 19, 2018 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...

366 views 0 6
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