I have a spring-boot project named portal-jup, where the main code is under sub-module portal-jup-biz, and the test code is under sub-module portal-jup-test, I could generate code coverage report portal-jup/portal-jup-test/target/site/jacoco-aggregate/index.html via running mvn clean test jacoco:report-aggregate under the root path, is it possible to generate the coverage report via command mvn clean test jacoco:report, how do I configure the pom.xml to get it?
-
Why have you separatged the test from your code? Can you please give more information ?khmarbaise– khmarbaise2024-11-27 17:46:32 +00:00Commented Nov 27, 2024 at 17:46
Add a comment
|
1 Answer
I found that creating an individual module to generate the jacoco report is useful, detailed in this blog: https://www.lorenzobettini.it/2017/02/jacoco-code-coverage-and-report-of-multiple-eclipse-plug-in-projects/#comment-13287