简体   繁体   中英

Maven Jacoco - merge all test results in 1 overview

Question: how can I merge the code coverage results of both the unit and integration tests in 1 Jacoco overview?

I have created all plugins.

Do I need to run the unit test first, and then the integration test?

Merging unit- and integration tests should not be merged. They have different goals.

If you would like to merge unittests, then you could look at the following simple demo project.

  • Multi module project
  • Unit test (via mvn clean install)
  • Integration test (via mvn clean install -P integration-test)
  • Jacoco - test coverage ( both aggregate datafile and aggregate reporting)
  • FindBugs - code quality

Enjoy the sipmle demo project .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM