You have to add goal merge so that the dumped files are merged and then generate report on the merged file.
On Wed, Jun 17, 2015, 9:45 PM Krishna Aiyamperumal < [email protected]> wrote: > Hi Team, > > I have three hosts and I need to capture the code coverage results > > <plugin> > > <groupId>org.jacoco</groupId> > > <artifactId>jacoco-maven-plugin</artifactId> > > <version>0.7.4.201502262128</version> > > <configuration> > > <destFile> > ${basedir}/target/coverage-reports/jacoco-it.exec</destFile> > > <dataFile> > ${basedir}/target/coverage-reports/jacoco-it.exec</dataFile> > > <outputDirectory> > ${project.reporting.outputDirectory}/jacoco-it</outputDirectory> > > </configuration> > > <executions> > > <execution> > > <id>dump</id> > > <phase>post-integration-test</phase> > > <goals> > > <goal>dump</goal> > > </goals> > > <configuration> > > <address>192.162.1.1,192.162.1.2,192.162.1.3</ > address> > > <port>6300</port> > > <dump>true</dump> > > </configuration> > > </execution> > > <execution> > > <id>default-report-integration</id> > > <goals> > > <goal>report-integration</goal> > > </goals> > > </execution> > > </executions> > > </plugin> > > This is not working. Please provide solution to solve this > > Thanks, > Krishna.A > > > On Friday, January 17, 2014 at 2:49:38 PM UTC-8, [email protected] wrote: >> >> Hello, >> >> I would like to dump jacoco exec file from different hostnames and merge >> it to a single file to generate report in a single maven command. Can you >> add a list of string type for accepting more than one host name so that i >> can pass multiple host names to dump goal to download the exec files from >> more than one hosts? >> >> For example, >> >> mvn -Djacoco.address=192.162.1.1,192.162.1.2 -Djacoco.port=9100 >> jacoco:dump jacoco:report >> >> Above command wouldn't work because you can pass only one hostname which >> is a string type. >> >> I'm not sure who implemented the jacoco maven plug-in. Let me know if you >> know the contact or if i'm not posting this to the right forum >> >> Btw, jacoco is an excellant tool. >> >> >> Thanks >> ManMohan Veettil >> >> -- 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/CAGVOiehnu%3DcWNP5Q4rDEGhW5BXRNNu%3DA26SyGdwzxSPNsCZEOQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
