Skip to content

Commit

Permalink
Fixed: Speed up Automated Tests by sharing apks.
Browse files Browse the repository at this point in the history
* Improved our CI to generate the test apk, we are using this in our all test cases.
* Added apk to `testInstrumentationRunnerArguments` option which takes the test apk when running the test cases.
  • Loading branch information
MohitMaliDeveloper committed Mar 12, 2024
1 parent 08face5 commit 427b07f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Build APK for test cases
run: ./gradlew assembleDebug

- name: create instrumentation coverage
uses: ReactiveCircus/android-emulator-runner@v2
env:
Expand Down
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ android {
versionCode = generateVersionCode()
versionName = generateVersionName()
manifestPlaceholders["permission"] = "android.permission.MANAGE_EXTERNAL_STORAGE"
testInstrumentationRunnerArguments += mapOf(
"apk" to "$buildDir/outputs/apk/androidTest/debug/kiwix-debug-androidTest.apk"
)
}
lint {
checkDependencies = true
Expand Down

0 comments on commit 427b07f

Please sign in to comment.