pav*_*mok 2 android android-testing firebase gcloud firebase-test-lab
我正在运行我的测试使用gcloud firebase测试android运行命令带--use-orchestrator标志来启用Android Test Orchestrator.有一个Orchestrator参数clearPackageData可以清除应用程序在测试之间的状态,我可以在我自己的设备上运行Android Studio测试时使用它:
android {
defaultConfig {
...
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// The following argument makes the Android Test Orchestrator run its
// "pm clear" command after each test invocation. This command ensures
// that the app's state is completely cleared between tests.
testInstrumentationRunnerArguments clearPackageData: 'true'
}
testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
}
}
dependencies {
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestUtil 'com.android.support.test:orchestrator:1.0.2'
}
Run Code Online (Sandbox Code Playgroud)
但是,当使用上面提到的命令和标志在Firebase测试实验室中运行测试时,此参数设置为false.有没有办法设置这个参数true?
在gcloud命令行上使用它:
--environment-variables clearPackageData=true
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
552 次 |
| 最近记录: |