Add jacoco maven plugin

This automatically generates a code coverage report on every execution
of `mvn test`.
This commit is contained in:
Simon Bruder 2023-11-18 14:06:04 +01:00
parent 6c8daa5287
commit 3d5793297b
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

25
pom.xml
View file

@ -63,4 +63,29 @@
</repositories> </repositories>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
<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>
</executions>
</plugin>
</plugins>
</build>
</project> </project>