Roc*_*bal 16 testing android kotlin circleci android-espresso
当尝试使用 Circleci 构建 Android 应用程序 Espresso Instrumentation Tests 时Unknown platform error occurred when running the UTP test suite.
任务:app:connectedDebugAndroidTest 失败
测试结果保存为文件:/home/circleci/code/app/build/outputs/androidTest-results/connected/test-result.pb。通过从菜单栏中选择 Run > Import Tests From File 并导入 test-result.pb,在 Android Studio 中检查这些结果。
失败:构建失败并出现异常。
有测试失败的情况。查看报告:file:///home/circleci/code/app/build/reports/androidTests/connected/index.html
使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。
12 秒内构建失败 74 个可操作任务:1 个已执行,73 个是最新的
<-------------> 0% WAITING> 已达到 IDLEMax 尝试次数 (2)
退出,代码退出状态 1
小智 5
在新计算机上安装 android studio 并在我之前用来运行测试的连接设备上运行仪器测试后遇到了同样的问题:
\n> Task :sdk-android:connectedDebugAndroidTest FAILED\nUnknown platform error occurred when running the UTP test suite. Please check logs for details.\nRun Code Online (Sandbox Code Playgroud)\n然后再次尝试通过命令行使用 --debug 选项运行这些测试,提供有关问题的更多详细信息:
\n./gradlew -Pandroid.testInstrumentationRunnerArguments.class=<MY_PACKAGE>.UnitTestSuite --debug\nRun Code Online (Sandbox Code Playgroud)\n日志:
\nCaused by: com.google.testing.platform.core.error.UtpException: ErrorName: INSTALL_FAILED_UPDATE_INCOMPATIBLE\n\xe2\x80\xa6.\n2023-02-14T16:32:41.454+0100 [ERROR] [org.gradle.api.Task] Unknown platform error occurred when running the UTP test suite. Please check logs for details.\n2023-02-14T16:32:41.455+0100 [QUIET] [org.gradle.api.Task] \nRun Code Online (Sandbox Code Playgroud)\n所以就我而言,这只是 adb 无法更新测试应用程序的问题。只需将其从设备中删除,它就对我有用了!
\n| 归档时间: |
|
| 查看次数: |
5991 次 |
| 最近记录: |