Skip to content

Commit 2f34d4a

Browse files
Fix empty JaCoCo aggregate report by adding dedicated reporting module
The JaCoCo aggregate report was empty because the aggregator POM lacked dependencies on the modules it was supposed to report on. This change introduces a dedicated `org.moreunit.report` module that handles the aggregation by explicitly depending on both the core functional modules and their respective test suites. This ensures JaCoCo can locate all classes, sources, and execution data. The aggregate report is still output to the location expected by the CI workflow: `org.moreunit.build/target/site/jacoco-aggregate/jacoco.xml`. Changes: - Created `org.moreunit.report/pom.xml` with coverage aggregation logic and dependencies on code and test modules. - Registered the new module in `org.moreunit.build/pom.xml`. - Removed the non-functional `report-aggregate` goal from the aggregator POM. Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>
1 parent 04f1be8 commit 2f34d4a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

org.moreunit.report/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,26 @@
3434
<artifactId>org.moreunit.mock</artifactId>
3535
<version>${project.version}</version>
3636
</dependency>
37+
<dependency>
38+
<groupId>org.moreunit</groupId>
39+
<artifactId>org.moreunit.core.test</artifactId>
40+
<version>${project.version}</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>org.moreunit</groupId>
44+
<artifactId>org.moreunit.mock.test</artifactId>
45+
<version>${project.version}</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>org.moreunit</groupId>
49+
<artifactId>org.moreunit.swtbot.test</artifactId>
50+
<version>${project.version}</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.moreunit.plugins</groupId>
54+
<artifactId>org.moreunit.test</artifactId>
55+
<version>${project.version}</version>
56+
</dependency>
3757
</dependencies>
3858
<build>
3959
<plugins>

0 commit comments

Comments
 (0)