Skip to content

Commit

Permalink
Enable code coverage reports
Browse files Browse the repository at this point in the history
Signed-off-by: Saeed Rezaee <[email protected]>
  • Loading branch information
SaeedRe committed Feb 13, 2024
1 parent ddf9e00 commit b7feecd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
elif [[ ${{ github.event_name }} == 'pull_request' && ${{ github.event.pull_request.head.repo.full_name != 'eclipse/hara-ddiclient' }} ]]; then
./gradlew --info build
else
./gradlew --info build sonar
./gradlew --info build jacocoTestReport sonar
fi
shell: bash

6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ test {
useTestNG()
}

jacocoTestReport {
reports {
xml.required = true
}
}

task codeCoverage(type: JacocoReport, group: 'verification') {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")

Expand Down

0 comments on commit b7feecd

Please sign in to comment.