Keep modules when using Jacoco CLI merge utility

11 views
Skip to first unread message

Omar Al-Haj Qasem

unread,
Apr 29, 2024, 10:56:04 AMApr 29
to JaCoCo and EclEmma Users
Hi;
I'm using Jacoco cli to merge multiple modules after generating all Unit Tests  jacoco.exec files & one Integration Test Jacoco.exec file.
The result of UT jacoco report is presented as modules and its percentage of modules is clear enough after generated by Maven verify, the same with IT (Integration test) 

UT (Unit Test) report like :
Screenshot 2024-04-29 at 12.36.25.png

then IT (Integration Test) report:
Screenshot 2024-04-29 at 12.42.49.png
As you can see for example, core-entities, sival-controllers-v2 modules are structured the same for both UT & IT and for the rest of the modules which will help the team to see the coverage percentage per module and track the progress and coverage.
However,  when I use the Merge utility:
java -jar org.jacoco.cli-0.8.8-nodeps.jar merge jacoco-ut.exec jacoco-it.exec --destfile=jacoco-ut-it-merged.exec
java -jar org.jacoco.cli-0.8.8-nodeps.jar report jacoco-ut-it-merged.exec ${CLAZ_PARAM} ${SOURCE_PARAM} --csv cov_report_ut_it.csv --html html_cov_report_ut_it

The merged report is not modulated as of UT & IT :
Here is the merged report:
Screenshot 2024-04-29 at 12.47.09.png

Is there a way to merge the reports and keep all of them as modules?

Best,
Omar


Reply all
Reply to author
Forward
0 new messages