Questions tagged [jacoco-maven-plugin]

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 agent runtime in the pre-test phases, allowing additional configuration in the file, and generate test 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

More Info

401 questions
2
votes
1 answer

Jacoco doesn't produce coverage reports

I 'm using maven-sure fire plugin to execute tests and Jacoco plugin to generate the coverage reports. Jacoco does't provide coverage reports and instead fails with the debug log as shown here under. [INFO] --- jacoco-maven-plugin:0.8.0:report…
Vineel
  • 1,630
  • 5
  • 26
  • 47
2
votes
1 answer

Maven surefire plugin is not using argLine property provided by Jacoco

This question is more focused on understanding maven life circle than in solving a real problem. We have a project with several maven modules. Both Jacoco and Surefire plugins are configured in the parent pom.xml as follows:
Nandez
  • 21
  • 1
  • 7
2
votes
2 answers

Maven cargo plugin with Surefire + Jacoco report

I have a project that fires up tomcat using the cargo plugin and then runs integration tests against that tomcat instance. My goal is get integration test coverage reports of the code that runs in tomcat (not coverage of my integration tests). The…
2
votes
0 answers

Generating combined jacoco coverage report for integration tests

I have a situation where my integration tests run like these Start java process 1 Start java process 2 Fire integration tests which interact with the two processes started before I started the two processes with -javaagent:
Raghvendra Singh
  • 1,775
  • 4
  • 26
  • 53
2
votes
1 answer

Maven jacoco excludes does not work

org.jacoco jacoco-maven-plugin 0.8.0