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. On Friday, March 17, 2017 at 3:39:53 PM UTC+1, Vara Prasad wrote: > > 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 > > > > -- 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/4d0a2ceb-4998-435f-8a47-a796ac7a736c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
