-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Milestone
Description
Steps to reproduce
Create a multi-module maven project with one module as aggregator. Following is a sample jacoco plugin configuration
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.2</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
JaCoCo version: 0.8.2
Operating system: Windows
Tool integration: Maven
Expected behaviour
report-aggregate should include test report from current aggregate module
Actual behaviour
report is generated only with dependent modules
The plugin does load the execution data for current project, but creates report only from dependencies . May we should just add following before the for loop
support.processProject(group, getProject().getArtifactId(), getProject(), getIncludes(), getExcludes(), sourceEncoding);
tymekg, zex97, McKratt, rvervaek, albertus82 and 1 more