It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Integration Tests showing in Application Code after Clover Merge

I have two separate micro-services/application. When i run the clover report using maven command clean clover:setup verify clover:aggregate clover:clover" for each of the application individually, the report generates fine with the Integration Test included in the Test Code i.e. both * & *, and the application code properly defined in the application code.

But now when i run the clover merge using the command mvn clean clover:merge clover:clover the integrations Tests which ends with * gets included in the application code and not the Test Code. Test Code only includes *

How to fix this problem, to have integration tests * separated from application code and moved to the Test Code.



1 answer

0 votes

If you run `mvn clean clover:merge clover:clover` the `clean` command wipes out the `target` directory. Which means that all instrumented classes and JARs as well as clover.db and recording files files are removed. 

You shall probably run sth like:

`mvn clean clover:setup verify clover:aggregate clover:clover`


`mvn clean clover:setup verify clover:merge clover:clover.


Note: the clover:aggregate goal makes basically the same as clover:merge (it merges databases into one). The only difference is that the first one searches for files based on modules executed in the maven reactor, while the second one searches for files in a given directory (and sub-directories).

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

227 views 4 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you