I captured the coverage details in the jacoco.exec file. Size 6Mb. I need to create a coverage report using maven. I tried below
<dependencies> <dependency> <groupId>org.jacoco</groupId> <artifactId>org.jacoco.ant</artifactId> <version>0.7.0.201403182114</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.6.3.201306030806</version> <executions> <execution> <id>post-integration-test</id> <phase>post-integration-test</phase> <goals> <goal>report</goal> </goals> <configuration> <dataFile>D:/JaCoCo/jacoco.exec</dataFile> <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> </configuration> </execution> </executions> </plugin> </plugins> </build>
It generates a zero percent coverage report.
Before testing, the jacoco.exec file was zero in bytes, and now it has a size of 6 MB. Is there something I don't see in pom.xml?
source share