Sub*_*Ram 2 testing mobile android android-espresso androidjunitrunner
从 CI 运行测试时发现崩溃。阅读这篇关于使用 Android Test Orchestrator 的文章 ( https://developer.android.com/training/testing/junit-runner#ato-gradle )。我正在使用 adb 从 CI 运行我的测试。想知道如何安装orchestrator。apk 在命令行中?
小智 6
如果使用 Orchestrator,您还需要测试服务 apk。
从网络存储库或本地计算机获取 apk:s。本地路径类似于:
<your cache dir>\.gradle\caches\modules-2\files-2.1\androidx.test\orchestrator\1.4.0-alpha05\ffa651bbb898f0f2bc93c8e9f1296ed5e77768f5\orchestrator-1.4.0-alpha05.apk
<your cache dir>\.gradle\caches\modules-2\files-2.1\androidx.test.services\test-services\1.4.0-alpha05\2a8f8a5c3f033d0c33e0faf35c6151713a9b0f9d\test-services-1.4.0-alpha05.apk
将它们放在可以从命令行访问的地方。
从该位置运行这些行:
adb install -g -r --force-queryable orchestrator-1.4.0-alpha05.apk
adb install -g -r --force-queryable test-services-1.4.0-alpha05.apk
| 归档时间: |
|
| 查看次数: |
1437 次 |
| 最近记录: |