Skip to content

Commit

Permalink
Add jacoco-maven-plugin (w.i.p.)
Browse files Browse the repository at this point in the history
`mvn clean test jacoco:report` still fails for check, so this part is disabled.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Aug 9, 2024
1 parent 2c1366f commit c68329e
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,11 @@ from system library in Java 11+ -->
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.10</version>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
Expand Down Expand Up @@ -1169,6 +1174,47 @@ from system library in Java 11+ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<!-- check disabled because it will fail until better coverage is realized
<execution>
<id>jacoco-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>PACKAGE</element>
<limits>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>0.50</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
-->
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit c68329e

Please sign in to comment.