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

Clover coverage for injected jars in maven project.

422vishal March 22, 2018


We have a web project which is built into war. We have multiple dependencies which are being injected via pom.xml. Dependencies are jar files. How would I be able to get coverage for those libraries as well.  Currently I am getting coverage of just my war project.

422vishal

1 answer

0 votes
Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2018

Clover works on a source code instrumentation level, which means it needs access to source code in order to generate code coverage data. 

It works well in multi-module Maven projects, however if you depend on any (external or local) Maven repository to fetch the dependencies (they are not part of multi module project) then you have to manage this by your own. Either by tracking coverage in every module separately (recommended) or by sharing instrumented JAR files (I would rather not recommend it because instrumented JARs can end up in a production system which is rather a bad thing)

 

Cheers,

Grzegorz Lewandowski

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events