What is the best way for using JaCoCo in Maven phases? I mean what's phase I should choose to run JaCoCo in my ci pipeline? Test
phase or verify
? What is the difference between the two types of using?
I have three execution sections in my POM file.
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<outputDirectory>target/jacoco-report</outputDirectory>
</configuration>
</execution>
<execution>
<id>check</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
And I don't understand how should I choose phase for each execuction section.