Skip to content

Commit

Permalink
fix: added jacoco plugin for test coverage calculation on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vanooyen committed Aug 8, 2024
1 parent 846d430 commit a4eda40
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,35 @@
</dependency>
<!--endregion-->
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<!-- attached to Maven test phase -->
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<!-- Exclude specific packages or classes -->
<configuration>
<includes>
<include>org/eclipse/uprotocol/mqtt/**</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit a4eda40

Please sign in to comment.