Run instrumentation tests from other gradle modules

and those not annotated with @MediumTest
This commit is contained in:
Torsten Grote 2024-09-25 14:53:59 -03:00
parent 8234cd8196
commit f38bed9616
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF
2 changed files with 2 additions and 9 deletions

View file

@ -51,8 +51,8 @@ instrumentation_tests_task:
adb shell bmgr transport com.stevesoltys.seedvault.transport.ConfigurableBackupTransport;
adb reboot;
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;';
run_large_tests_script: ./gradlew -Pinstrumented_test_size=large :app:connectedAndroidTest
run_medium_tests_script: ./gradlew -Pinstrumented_test_size=medium :app:connectedAndroidTest
run_large_tests_script: ./gradlew -Pandroid.testInstrumentationRunnerArguments.size=large :app:connectedAndroidTest
run_other_tests_script: ./gradlew -Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.LargeTest connectedAndroidTest
always:
pull_screenshots_script:
adb pull /sdcard/seedvault_test_results

View file

@ -32,13 +32,6 @@ android {
versionNameSuffix = "-${gitDescribe()}"
testInstrumentationRunner = "com.stevesoltys.seedvault.KoinInstrumentationTestRunner"
testInstrumentationRunnerArguments["disableAnalytics"] = "true"
if (project.hasProperty("instrumented_test_size")) {
val testSize = project.property("instrumented_test_size").toString()
println("Instrumented test size: $testSize")
testInstrumentationRunnerArguments["size"] = testSize
}
}
signingConfigs {