Skip to content

Commit

Permalink
Fix missing code coverage in Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidi committed Dec 21, 2024
1 parent 9771186 commit 7cfa9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew test jacocoTestReport sonar
run: ./gradlew jacocoTestReport sonar

asciidoc-build:
# The type of runner that the job will run on
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sonar {
property "sonar.projectKey", "rashidi_spring-boot-tutorials"
property "sonar.organization", "rashidi-github"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.jacoco.xmlReportPaths", "${getLayout().getBuildDirectory().get()}/reports/jacoco/testCodeCoverageRport/testCodeCoverageReport.xml"
property "sonar.coverage.jacoco.xmlReportPaths", "${getLayout().getBuildDirectory().get()}/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
}
}

Expand Down

0 comments on commit 7cfa9ca

Please sign in to comment.