A maven plug-in which provides the JaCoCo agent to automated tests and allows basic report creation.
This plugin lets the build process load the jacoco agent runtime in the pre-test maven phases, allowing additional configuration in the pom file, and generate test coverage documentation in the verify phase.
Usage
The Maven plug-in can be included in your build with the following declaration:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.8</version>
</plugin>
To receive a full list of goals and available parameters you can use maven-help-plugin
:
mvn help:describe -Dplugin=org.jacoco:jacoco-maven-plugin -Ddetail