Skip to content

Commit

Permalink
Use dedicated jacoco task for automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOellerer committed Oct 25, 2021
1 parent 40fda6e commit db559a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ sonarqube {
}
}

jacocoTestReport {
task jacocoAutomatedTestReport(type: JacocoReport) {
sourceSets sourceSets.main
executionData automatedTests
reports {
xml.enabled true
}
dependsOn test
}

0 comments on commit db559a2

Please sign in to comment.