From db559a233e3211bbf594707008b05e262d0642b2 Mon Sep 17 00:00:00 2001 From: Anton Oellerer Date: Mon, 25 Oct 2021 15:44:29 +0200 Subject: [PATCH] Use dedicated jacoco task for automated tests --- .github/workflows/push.yml | 2 +- build.gradle | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d8c8d2cb..b478dbb3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -110,7 +110,7 @@ jobs: - name: Run sonarqube check uses: gradle/gradle-build-action@v2 with: - arguments: build -x test automatedTests jacocoTestReport sonarqube --info + arguments: build -x test automatedTests jacocoAutomatedTestReport sonarqube --info env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any \ No newline at end of file diff --git a/build.gradle b/build.gradle index 93be216b..656d16e7 100644 --- a/build.gradle +++ b/build.gradle @@ -113,9 +113,10 @@ sonarqube { } } -jacocoTestReport { +task jacocoAutomatedTestReport(type: JacocoReport) { + sourceSets sourceSets.main + executionData automatedTests reports { xml.enabled true } - dependsOn test } \ No newline at end of file