Skip to content

Commit

Permalink
Merge pull request #236 from RomeoIndiaJulietUniform/feature/test-cov…
Browse files Browse the repository at this point in the history
…erage-jacoco

feat: add JaCoCo for test coverage and fail build under 100%
  • Loading branch information
McPringle authored Oct 20, 2024
2 parents fd192b8 + f432a85 commit 15b9989
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,57 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.10</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>1.0</minimum>
</limit>
<limit>
<counter>LINE</counter>
<value>MISSEDCOUNT</value>
<maximum>0</maximum>
</limit>
</limits>
</rule>
</rules>
<excludes>
<exclude>swiss/fihlon/apus/**</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>


</plugins>
</build>

Expand Down

0 comments on commit 15b9989

Please sign in to comment.