Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Combining clover coverage for different packges to view the consolidated report for sub-project level coverage?

Hi All,

We have a large maven project repository  with different teams owning sub-projects.Each sub-project has multiple project.Its looks somewhat like this:

Root
|
|
->Project A
|
|
->Project B

 

And in Project A the packages looks somewhat like this

com.company.A.x.y.z

com.company.A.a.c

com.company.A.x.y

So my question is whether is it possible to see consolidated coverage report for Project A by combining reports for all packages that are of the form com.company.A.*?

1 answer

Hi, 

If all project A packages are in the Project A directory and this is the maven module then you should be able to generate the report by going into Project A directory and calling:

mvn clean clover2:setup verify clover2:aggregate clover2:clover

You should be able also to generate report only for Project A plugin from the root directory with command:

mvn clean clover2:setup verify clover2:aggregate clover2:clover -pl 'Project A'

I'm assuming here that you have already maven-clover2-plugin configured, if not then please refer to this documentation.

 

NOTE: By default Clover will generate separate reports for each sub-module and then aggregated one for root, I was helping you with configuration to get it generate reports only for root project, see here.

 

If you're having problem or any other questions feel free to ask.

 

Cheers,

Grzegorz Lewandowski 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Learn how to request and manage app requests in the Marketplace

G’day everyone! Super exciting news coming from the Marketplace. We have now fully rolled out the ability for end-users to submit app requests to admins directly from within the product! No longer ...

44 views 1 6
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