Skip to content

report-aggregate does not include report from current project #812

@sidgate

Description

@sidgate

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>

https://stackoverflow.com/questions/53983849/jacoco-report-aggregate-include-report-of-aggregate-project

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions