On Saturday, January 21, 2017 at 6:37:14 AM UTC-8, Evgeny Mandrikov wrote:
>
> Hi,
>
> As stated in
> http://www.jacoco.org/jacoco/trunk/doc/report-aggregate-mojo.html
> "report-aggregate" uses dependencies to build report, so requires a
> dedicated module and not aggregator pom.
>
> You can find an example in integration tests for JaCoCo Maven Plugin - see
> https://github.com/jacoco/jacoco/tree/v0.7.8/jacoco-maven-plugin.test/it/it-report-aggregate
>
> Also build of JaCoCo itself utilizes this feature - see
> https://github.com/jacoco/jacoco/blob/0.7.8/org.jacoco.doc/pom.xml#L111-L135
>
> And you can find other examples in internet, e.g.
> https://groups.google.com/d/msg/jacoco/mfRi97alxqs/63KqpEZKAQAJ
>
> Hope this clarifies,
> Evgeny
>
>
I need more information. It generated the report, but it showed no
coverage. I'm guessing I have to somehow communicate the name of the
".exec" file that I'm using.
I constructed an additional module called "jacoco-aggregate", and this is
an excerpt of its POM:
<dependencies>
...
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.8</version>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
I added a dependency for each child module that has unit tests. I verified
that those individual modules are generating data. I looked at the
properties for report-aggregate, but it's not obvious how I configure it to
know what the name is of the data file in each module.
--
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/867ba98e-3062-479f-af0d-f1c78e05a1c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.