JaCoCo support not working
See original GitHub issueJacoco code coverage tool should be supported since the version 1.1.5 (implemented by @rsauciuc ). However when we run jacoco on the sample project in this project, we are getting zero coverage. We are using following configuration in the parent pom:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${version.jacoco.plugin}</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>surefire.argLine</propertyName>
</configuration>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<haltOnFailure>${jacoco.haltOnFailure}</haltOnFailure>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>${jacoco.line.coveredratio.minimum}</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
maven jacoco: not generating code coverage report
1. Any particular reason why you are using an outdated version of the JaCoCo plugin? For Java 8 support, you have to use...
Read more >JaCoCo - FAQ
Why does the coverage report not show line coverage figures? JaCoCo is based on class files analysis. To calculate line coverage class files...
Read more >JaCoCo and EclEmma Users - Google Groups
Welcome to the EclEmma and JaCoCo user's group! To resolve issues quickly please check our extensive documentation first:.
Read more >JaCoCo | Jenkins plugin
This plugin integrates JaCoCo code coverage reports to Jenkins. ... When looking for things to work at there are pull requests and a...
Read more >Support JaCoCo coverage reports for coverage visualization
Problem to solve As a Java Developer i want to use the test coverage visualization for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should this still work with GWT 2.8.2 and GwtMockito + plain old JUnit Tests? Somehow do not get it to work at all. Does not even create the jacoco.exec file (“Skipping JaCoCo execution due to missing execution data file.”). Anybody managed to find a solution?
Any idea how to do this for ant? Thanks