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
0
votes
0 answers

How to achive on the fly bytecode instrumentation at runtime using jacoco

I am working on a Spring MVC + maven based project which contain good number of scenarios to be tested, analysed and recorded in reports (like Code coverage, static code analysis etc.). The scenarios are more challenging so we cannot do the code…
0
votes
1 answer

junit test cases pass individually, but not in mvn install

I have a Java project with several classes, and I've created junit test cases for each classes. I've used jacoco plugin to check the unit test coverage of my project using sonarQube 5.5. I'm working on Eclipse Mars 4.5.2 on Windows 7 When I run mvn…
Saransh Kejriwal
  • 2,467
  • 5
  • 15
  • 39
0
votes
1 answer

Arquillian + jacoco IT coverage

I configured 2 projects to use last jacoco version 0.7.8 and last Arquillian jacoco extension (1.0.09Alpha) it works like a charm (for jenkins and sonar 6.2)! but i have a bigger project, when i launch only Arquillian IT test my war archive is…
0
votes
1 answer

Why no jacoco.exec produced when a single test is run - but it is produced when all tests are run?

I'm running surefire tests with a jacoco agent. When I run mvn verify a jacoco.exec file is produced. When I run mvn clean verify -Dtest=com.org.MyTest -DfailIfNoTests=false then no jacoco.exec file is produced. Here is my surefire config.
hawkeye
  • 34,745
  • 30
  • 150
  • 304
0
votes
1 answer

Maven + Jacoco + Arquillian +TestNG IT test = stackoverflowError

I am using the last version of jacoco-maven-plugin (0.7.8) and last version of arquillian-jacoco (1.0.0.Alpha9) but when executing IT test i have a stackOverFlowError in BeforeClass Arquillian (I am using maven, testNG, wildfly, jacoco,arquillian…
0
votes
1 answer

jacoco as surefire argLine - The command line is too long

I'm running Jacoco as an agent to surefire org.apache.maven.plugins maven-failsafe-plugin 2.18.1
hawkeye
  • 34,745
  • 30
  • 150
  • 304
0
votes
1 answer

sonar jacoco report not executed

I have added code for generating jacoco coverage report using sonar.But when i am running mvn clean install sonar:sonar.Only sonar-related functionality executed.Jacoco coverage report is not generated.