Skip to content

Commit

Permalink
code coverage added
Browse files Browse the repository at this point in the history
  • Loading branch information
buckelieg committed Jul 15, 2024
1 parent 8753cbf commit 566d567
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
files: ./target/coverage.json
token: ${{ secrets.CODECOV_TOKEN }}

21 changes: 16 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,37 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<version>0.7.9</version>
<configuration>
<destFile>${project.build.directory}/jacoco-report.exec</destFile>
<dataFile>${project.build.directory}/jacoco-report.exec</dataFile>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.veithen.maven</groupId>
<artifactId>jacoco-report-maven-plugin</artifactId>
<version>0.3.0</version>
<configuration>
<dataFile>${project.build.directory}/jacoco-report.exec</dataFile>
</configuration>
<executions>
<execution>
<id>generate-code-coverage-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
<goal>process</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.1</version>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 566d567

Please sign in to comment.