Hi, I am having a hard time to get JaCoCo plugin working to get integration 
test (IT) coverage for my Spring boot app with Maven.

Here's my configuration for the jacoco-maven-plugin for IT:


<execution>
  <id>pre-integration-test</id>
  <phase>pre-integration-test</phase>
  <goals>
      <goal>prepare-agent</goal>
   </goals>
   <configuration>
      <!-- Sets the path to the file which contains the execution data. -->
     <destFile>${sonar.jacoco.itReportPath}</destFile>
<!--
Sets the name of the property containing the settings
for JaCoCo runtime agent.
-->

</configuration>
</execution>
<!--
Ensures that the code coverage report for integration tests after
integration tests have been run.
-->
<execution>
<id>post-integration-test</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<!-- Sets the path to the file which contains the execution data. -->
<dataFile>${sonar.jacoco.itReportPath}</dataFile>
<!-- Sets the output directory for the code coverage report. -->
<outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
</configuration>
</execution>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/62cc9eb0-21c5-45e5-bf59-f5304b0a3514%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to