Skip to content

Commit

Permalink
Merge pull request #80 from DDS-GmbH/fix/jacoco
Browse files Browse the repository at this point in the history
Use dedicated jacoco task for automated tests
  • Loading branch information
AntonOellerer authored Oct 25, 2021
2 parents b15cc2c + db559a2 commit c497596
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 c497596

Please sign in to comment.