jeudi 10 décembre 2020

maven jacoco plugin reports always show 0% of coverage

JaCoCo reports always shows 0% of coverage but Intellij integrated report is ok. I already see others StackOverflow questions but none helped. Below is my jacoco plugin pom.xml configuration:

<plugin>
    <groupId>org.jacoco</groupId>
    <artifactId>jacoco-maven-plugin</artifactId>
    <version>0.7.9</version>
    <executions>
        <execution>
            <id>pre-unit-test</id>
            <goals>
                <goal>prepare-agent</goal>
            </goals>
            <configuration>
                <destFile>${project.build.directory}/jacoco.exec</destFile>
            </configuration>
        </execution>
    </executions>
</plugin>
            

My last attempts were order surefire and jacoco-plugin but it doesn't work. There is any relation with surefire and jacoco-plugin?

Aucun commentaire:

Enregistrer un commentaire