Skip to content

Commit

Permalink
Update CI Workflow configuration 🔧
Browse files Browse the repository at this point in the history
- Decouple testDebugUnitTest and connectedDebugAndroidTest from jacocoTestReport task
  • Loading branch information
ndegwamartin committed Aug 19, 2024
1 parent 6227405 commit 5658427
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ jobs:
disable-animations: true
script: ./gradlew clean connectedDebugAndroidTest --stacktrace

- name: Run unit tests and generate jacocoTestReport for each module
- name: Run unit tests for each module
run: ./gradlew testDebugUnitTest --stacktrace

- name: Generate jacocoTestReport for each module
run: ./gradlew jacocoTestReport --stacktrace

- name: Merge jacoco reports from all modules
Expand Down
8 changes: 5 additions & 3 deletions jacoco-report.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// createDebugCoverageReport is not available when android.buildTypes.debug.testCoverageEnabled is false
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']){
//, 'connectedDebugAndroidTest']) {
//, 'createDebugCoverageReport']) {
task jacocoTestReport(type: JacocoReport){
// Removing dependents, to run the tests and get the report use the command below
// ./gradlew testDebugUnitTest connectedDebugAndroidTest jacocoTestReport --stacktrace
//}, dependsOn: ['testDebugUnitTest', 'connectedDebugAndroidTest']) {
//, 'createDebugCoverageReport']) {

reports {
xml.required.set(true)
Expand Down

0 comments on commit 5658427

Please sign in to comment.