mavencode-coveragejacocomaven-surefire-pluginmaven-failsafe-plugin

Merging Integration and Unit test reports with JaCoCo


I am generating failsafe and surefire reports with maven with the JaCoCo plugin, but I can only manage to get them in separate reports. I would like to have a overall coverage view (merge between both Unit Tests and Integration Tests) as well.

After what I think was a thorough google search I could only found a way to do this with Sonar. Is there any simpler way to do this?

Related question: Maven separate Unit Test and Integration Tests


Solution

  • You should take a look into the documentation of JaCoCo Maven plugin which contains a merge goal.