diff --git a/.github/workflows/pipeline-build.yml b/.github/workflows/pipeline-build.yml index d4a0b06..e2fa0b9 100644 --- a/.github/workflows/pipeline-build.yml +++ b/.github/workflows/pipeline-build.yml @@ -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 diff --git a/build.gradle b/build.gradle index 0a39705..6b60c8d 100644 --- a/build.gradle +++ b/build.gradle @@ -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")