Merge and report-aggreate are not working on version 0.7.7

44 views
Skip to first unread message

Vara Prasad

unread,
Mar 17, 2017, 10:39:53 AM3/17/17
to JaCoCo and EclEmma Users
Hi ,

I have been fighting with this problem for a while now, please help resolve this.

I have multi module project and I have set of cucumber tests written for all modules in one test module. I am trying to get the coverage from the test module as well as from the source module.

I have tried merge and report-aggregate for this pupose, none of the worked for me,

Here is the my setup looks like

Parent module:


<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<configuration>
<dataFile>${project.build.directory}/jacoco.exec</dataFile>
</configuration>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>argLine1</propertyName>
</configuration>
</execution>
<execution>
<id>merge</id>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<fileSets>
<fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
<directory>${project.build.directory}</directory>
<includes>
<include>*.exec</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>


Child source modules does not have the plugin at all.

Child test module 

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<id>report-aggregate</id>
<phase>post-integration-test</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>


And I ran the commands 

mvn jacoco:prepare-agent install
and 
jacoco:merge

The result is 

Skipping JaCoCo merge execution due to missing execution data files

and

jacoco:report-aggreagte

The result is empty report


Evgeny Mandrikov

unread,
Mar 17, 2017, 11:38:25 AM3/17/17
to JaCoCo and EclEmma Users
Hi,

Please provide complete , minimal and verifiable example of project that demonstrates your difficulties, because partial excerpt of a pom.xml is clearly not enough to reproduce and understand your issue.

Also have a look on existing complete examples that demonstrate how to generate coverage report when tests are located in separate module, e.g. http://stackoverflow.com/a/41901853/244993

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