Skip to content

Commit

Permalink
Merge pull request #52 from ropalka/ISSUE-51
Browse files Browse the repository at this point in the history
[ISSUE-51] Enabling code coverage
  • Loading branch information
ropalka committed Mar 12, 2024
2 parents 40a195b + bfc7f5c commit 0efc0ea
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.org.jacoco>0.8.11</version.org.jacoco>
</properties>

<dependencies>
Expand All @@ -56,7 +57,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED</argLine>
<argLine>@{argLine} --add-opens=java.base/java.lang=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -88,6 +89,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${version.org.jacoco}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>generate-code-coverage-report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 0efc0ea

Please sign in to comment.