Jacoco Report will be covered each other for Multi Module when I set an "outputDirectory" property

88 views
Skip to first unread message

fulel...@gmail.com

unread,
Mar 1, 2017, 5:15:20 AM3/1/17
to JaCoCo and EclEmma Users
Hi,
   I have an issue now for Multi Module, please see below:
   when generate the jacoco.exec file, I have add the 'append="true"'. Then generate the Coverage Report with 'mvn install', the configure of pom.xml like this:
   Now, the problem is:
   1. When not add the 'outputDirectory' property, then will generate each Coverage Report under each Module's file, there are some coverage File and an 'index.html', this is OK.
   2. When add the 'outputDirectory' property, thus I meet an Issue: The ‘index.html' file will be covered by each other. Finally, it will only have the last one 'index.html' and some other Coverage File.
   
So, if anyone know this reason, please give me a help, Thanks!

Pom.xml:
                     <plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<configuration>
<dataFile>D:/ProjectCode/Accounts.UserRegisterService/Code-coverage/jacoco.exec</dataFile>
<outputDirectory>D:/ProjectCode/Accounts.UserRegisterService/Code-coverage/CoverageReport/</outputDirectory>
</configuration>
<executions>
<execution>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages