JaCoCo reports are an essential component of Cover Reports. This requires a minor config update for your projects to add the appropriate dependencies and plugins (if you're not already using JaCoCo).
Add the following declarations to the pom.xml file for the project:
You may also want/need to download an appropriate version of JaCoCo (0.8.3+) for use with your Cover projects as well. Note that this version may be different to the JaCoCo Maven plugin version.
Add the JaCoCo plugin to your build script (build.gradle or build.gradle.kts):
apply plugin: 'jacoco'
Include the following configuration to enable the generation of the XML reports:
To ensure that you run JaCoCo, we recommend adding finalizedBy jacocoTestReport to your test configuration, for example:
test {
finalizedBy jacocoTestReport
}
You may also want/need to download an appropriate version of JaCoCo (0.8.3+) for use with your Cover projects as well. Note that this version may be different to the JaCoCo Maven plugin version.
Add the JaCoCo plugin to your build script (build.gradle or build.gradle.kts):
plugins {
jacoco
}
Include the following configuration to enable the generation of the XML reports:
To ensure that you run JaCoCo, we recommend adding finalizedBy jacocoTestReport to your test configuration, for example:
test {
finalizedBy jacocoTestReport
}
You may also want/need to download an appropriate version of JaCoCo (0.8.3+) for use with your Cover projects as well. Note that this version may be different to the JaCoCo Maven plugin version.