Skip to content

Commit

Permalink
add androidTest coverage data
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak committed Oct 21, 2023
1 parent 6f78223 commit cf2393a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- android/change-java-version:
java-version: 17

#- android/start-emulator-and-run-tests:
#system-image: system-images;android-29;google_apis;x86
- android/start-emulator-and-run-tests:
system-image: system-images;android-29;google_apis;x86
# Compile while the emulator starts to use the time.
#post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources database:impl:compileFullDebugAndroidTestSources
#test-command: ./gradlew database:impl:connectedFullDebugAndroidTest
post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources database:impl:compileFullDebugAndroidTestSources
test-command: ./gradlew database:impl:connectedFullDebugAndroidTest

- android/run-tests:
test-command: ./gradlew testFullDebugUnitTest
Expand Down
6 changes: 6 additions & 0 deletions jacoco_aggregation.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ project.afterEvaluate {
it.add(path)
println("Collecting execution data from: $path")
}
val androidPath = "${proj.buildDir}/outputs/code_coverage/${variant}AndroidTest/connected/"
val androidFiles = fileTree(androidPath)
androidFiles.forEach { file ->
it.add(file.path)
println("Collecting android execution data from: ${file.path}")
}
}
}
}
Expand Down

0 comments on commit cf2393a

Please sign in to comment.