android集成测试工具,android – 集成测试和Cucumber测试
要使用Gradle命令行工具啟用Android Test Orchestrator,請完成以下步驟:
android {
defaultConfig {
...
testInstrumentationRunner "androidx.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 'ANDROIDX_TEST_ORCHESTRATOR'
}
}
dependencies {
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestUtil 'androidx.test:orchestrator:1.1.0'
}
>執(zhí)行以下命令運(yùn)行Android Test Orchestrator
./gradlew connectedCheck
從Android Studio啟用
Android Studio 3.0及更高版本支持Android Test Orchestrator.要在Android Studio中啟用Android Test Orchestrator,請將Enable from Gradle中顯示的語句添加到應(yīng)用程序的build.gradle文件中.
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的android集成测试工具,android – 集成测试和Cucumber测试的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 什么是企业保险
- 下一篇: r语言解析html,R语言爬虫入门-rv