Skip to content

Commit 2051a01

Browse files
Fix Tycho/JaCoCo integration for coverage reporting
- Switch from 'argLine' to 'tycho.testArgLine' for JaCoCo agent injection in Tycho. - Initialize 'tycho.testArgLine' property in parent POM to avoid build failures. - Update jacoco-maven-plugin to populate 'tycho.testArgLine'. - Create .github/workflows/coverage.yml and update README.md. Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>
1 parent e5cac5c commit 2051a01

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

org.moreunit.build/pom.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<tests.use.ui>false</tests.use.ui>
3535

3636
<target.platform.classifier>eclipse-latest</target.platform.classifier>
37-
<argLine></argLine>
37+
<tycho.testArgLine></tycho.testArgLine>
3838

3939
</properties>
4040
<build>
@@ -101,7 +101,7 @@
101101
<showEclipseLog>true</showEclipseLog>
102102
<skipAfterFailureCount>10</skipAfterFailureCount>
103103
<providerHint>junit4</providerHint>
104-
<argLine>@{argLine} --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
104+
<argLine>${tycho.testArgLine} --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
105105
</configuration>
106106
</plugin>
107107
<plugin>
@@ -282,6 +282,9 @@
282282
<goals>
283283
<goal>prepare-agent</goal>
284284
</goals>
285+
<configuration>
286+
<propertyName>tycho.testArgLine</propertyName>
287+
</configuration>
285288
</execution>
286289
<execution>
287290
<id>merge-all</id>

0 commit comments

Comments
 (0)