Hi Raj,

as of now JaCoCo Maven goals do not support multi-module reports. We hope to have a solution ready soon (https://github.com/jacoco/jacoco/pull/388).

In the meantime a possible workaround is to embed an Ant script in your Maven build which supports arbitrary input sources, see JaCoCo build for an example: https://github.com/jacoco/jacoco/blob/master/org.jacoco.doc/pom.xml#L90

Regards,
-marc

On 2016-04-08 19:53, [email protected] wrote:
Hi ,

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

--
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/d535a13ea19d92db19034fde469218db%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to