Skipping JaCoCo execution due to missing execution data file

13,971 views
Skip to first unread message

tusharkap...@gmail.com

unread,
Feb 23, 2020, 4:13:30 AM2/23/20
to JaCoCo and EclEmma Users
Hi Team,

I have been trying to integrate the jacoco with my project for code coverage but I am getting "Skipping JaCoCo execution due to missing execution data file" message.

I have tried many things but it did not work. Could you please me on this?. My pom.xml configuration given below.

                            <plugin>

<groupId>org.jacoco</groupId>

<artifactId>jacoco-maven-plugin</artifactId>

<version>0.8.5</version>

<executions>

<execution>

<id>pre-unit-test</id>

<goals>

<goal>prepare-agent</goal>

</goals>

<configuration>

<configuration>

<destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>

<propertyName>surefireArgLine</propertyName> 

</configuration>

</configuration>

</execution>

<execution>

<id>post-unit-test</id>

<phase>test</phase>

<goals>

<goal>report</goal>

</goals>

<configuration>

<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>

<outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>

</configuration>

</execution>

</executions>

</plugin>



                         <plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-plugin</artifactId>

<version>3.0.0-M4</version>

<configuration>

<argLine>${surefireArgLine}</argLine>

</configuration>

</plugin>


I tried removing argLine in maven-surefire but I can see "The forked VM terminated without properly saying goodbye. VM crash or System.exit called?"


I tried removing <propertyName> from Jacoco but still, it didn't work. 


I tried <forkCount> as 0 in Surefire but no luck. Even tried  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> and <useSystemClassLoader>false</useSystemClassLoader> but none of this worked.



Please let me know if you have any suggestions.

Evgeny Mandrikov

unread,
Mar 2, 2020, 5:12:54 AM3/2/20
to JaCoCo and EclEmma Users
Hi,


On Sunday, February 23, 2020 at 10:13:30 AM UTC+1, tusharkap...@gmail.com wrote:
I tried <forkCount> as 0 in Surefire but no luck.

As stated in the documentation on page https://www.jacoco.org/jacoco/trunk/doc/maven.html

When using the maven-surefire-plugin or maven-failsafe-plugin you must not use a forkCount of 0

Even tried  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> and <useSystemClassLoader>false</useSystemClassLoader> but none of this worked.



I tried removing argLine in maven-surefire but I can see "The forked VM terminated without properly saying goodbye. VM crash or System.exit called?"

This message should be accompanied by others such as:

[ERROR] Please refer to /tmp/example/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.

Please read what is written in these files.


Regards,
Evgeny

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages