Skip to content

Commit

Permalink
chore: JaCoCo together with Instrumentation Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoso committed May 28, 2024
1 parent 04e9462 commit b7ec42a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/instrumentation-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,24 @@ jobs:
target: google_apis
arch: x86
disable-animations: true
script: ./gradlew :app:connectedCheck --stacktrace
script: ./gradlew createDebugCoverageReport --stacktrace

- name: Jacoco Report to PR
id: jacoco
uses: madrapps/jacoco-report@v1.2
with:
paths: |
${{ github.workspace }}/app/build/reports/coverage/androidTests/debug/connected/report.xml
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
min-coverage-overall: 40
min-coverage-changed-files: 60
title: Code Coverage
debug-mode: false

- name: Get the Coverage info
run: |
echo "Total coverage ${{ steps.jacoco.outputs.coverage-overall }}"
echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}"
- name: Upload test reports
if: always()
Expand Down

0 comments on commit b7ec42a

Please sign in to comment.