Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Generate Jacoco report
Generate Jacoco report [message #1703313] Thu, 30 July 2015 10:08 Go to next message
Eclipse UserFriend
Hi,

I am running RCPTT tests on Travis, I was able to generate the test.exec file by adding to my AUT configuration:
<vmArgs>
<vmArg>-javaagent:${jacocoagent}=destfile=${jacocodestfile}</vmArg>
</vmArgs>

I would like to generate the Jacoco report in order to use https://coveralls.io to view the code coverage of my project. To do so I would like to use the coveralls maven plugin : https://github.com/trautonen/coveralls-maven-plugin

So I tried to add jacoco report maven goal to my pom.xml :
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<executions>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<!-- Sets the path to the file which contains the execution data. -->
<dataFile>${jacocodestfile}</dataFile>
<!-- Sets the output directory for the code coverage report. --><outputDirectory>${project.reporting.outputDirectory}/report</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

And I launched my tests like this :
mvn clean verify -Daut="../myaut.zip" -Drcpttrunner="xxx/rcptt.runner-2.0.0.zip" -Drepotoken="xxx" -Dsuite="Test" -Djacocoagent="xxxlib/jacocoagent.jar" -Djacocodestfile="xxx/target/jacoco.exec" jacoco:report coveralls:report

When I launched the tests, the jacoco.exec file is well created but I got the following message :
[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:report (jacoco-site) @ rcpttTests ---
[INFO] Skipping JaCoCo execution due to missing classes directory:/xxx/target/classes
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:report (default-cli) @ rcpttTests ---
[INFO] Skipping JaCoCo execution due to missing execution data file:/xxx/target/jacoco.exec

So, could you explain how to use jacoco report maven goal with RCPTT tests results ?

Best regards,
Mélanie
Re: Generate Jacoco report [message #1709578 is a reply to message #1703313] Tue, 29 September 2015 07:19 Go to previous message
Eclipse UserFriend
Hi,

Actually this problem isn't directly related to RCPTT, but I've found the same discussion here.
Previous Topic:Can't save screenshots in HTML report
Next Topic:How to solve this in Maven Injection in RCPTT
Goto Forum:
  


Current Time: Tue Jun 17 04:42:23 EDT 2025

Powered by FUDForum. Page generated in 0.03290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top