11:51 AM (less than a minute ago)
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>
<destFile>${sonar.jacoco.itReportPath}</destFile>
</configuration>
</execution>
<execution>
<id>post-integration-test</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${sonar.jacoco.itReportPath}</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
</configuration>
</execution>
And we are using the spring-boot-maven-plugin for running the integration
tests as below,
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.3.7.RELEASE</version>
<executions>
<execution>
<id>pre-integration-test</id>
<goals>
<goal>start</goal>
</goals>
<configuration>
<fork>false</fork>
<arguments>
<argument>--server.port=${flex.module.port}</argument>
<argument>--logging.config=${project.basedir}/src/test/resources/test-log4j.xml</argument>
<argument>--server.tomcat.accesslog.enabled=false</argument >
<argument>--server.tomcat.basedir=${project.build.directory}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>post-integration-test</id>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
When I run "mvn clean verify" I see the following error,
--- jacoco-maven-plugin:0.7.7.201606060606:report (post-integration-test) @
se-service ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
Looks like the .exec file is not getting generated by the Agent. Any
help would be appreciated ?
Thanks
Rohan
--
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/fbcc541f-4abd-4539-85f0-6439b08222f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.