I have a multimodule project. where i have configured jacoco for unit tests.
main
---module-a
---module-b
I have configured jacoco maven plugin in parent pom.xml
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
when i run mvn clean install it runs unit tests and generates .exec in each of the module. But how do i get a merged/aggregated code coverage report of the 2 modules ?
where should configure the merge goal of jacoco , in the parent pom or individual POM ?
can some body tell me how to configure the jacoco for merged report?
what configurations to set and how to run it ?
Thanks!
Raj
so if am not wrong the merge goal in Jacoco is useful to merge .exec files residing in same project/module and will not work with multi modules ?
when can we expect this feature to be in jacoco ?
Thanks!
Raj