question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JaCoCo support not working

See original GitHub issue

Jacoco 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:open
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zeitwesencommented, Sep 14, 2019

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?

0reactions
JonCookcommented, Jun 22, 2017

Any idea how to do this for ant? Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found