Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
amanteaux committed Sep 18, 2024
1 parent fc2b6a4 commit 81db132
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<maven.compiler.target>17</maven.compiler.target>
<javadoc.java-version>8</javadoc.java-version>
<additionalparam>-Xdoclint:none</additionalparam>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/samples/target/site/ jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<modules>
Expand Down Expand Up @@ -135,6 +136,32 @@
</plugins>
</build>
</profile>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand All @@ -153,5 +180,4 @@
</plugin>
</plugins>
</build>

</project>

0 comments on commit 81db132

Please sign in to comment.