0

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?

1
  • Why have you separatged the test from your code? Can you please give more information ? Commented Nov 27, 2024 at 17:46

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.