android - Android 测试:未找到测试
问题描述
Starting 0 tests on test(AVD) - 10
Tests on test(AVD) - 10 failed: Instrumentation run failed due to 'Process crashed.'
com.android.build.gradle.internal.testing.ConnectedDevice > No tests found.[test(AVD) - 10] FAILED
No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations).
所以我在我的 CI 上运行测试,这个错误随机弹出,有时它会找到 2 个测试并运行它。但大多数时候我得到这个。
我查看了 Stack Overflow 的其他答案,但它们对我没有帮助。
解决方案
推荐阅读
- javascript - GAE 上的 NextJS - 错误:EROFS:只读文件系统
- swift - Localizable.strings 中没有“Base”复选框
- c# - C# WPF APP 与谷歌电子表格交互
- apache-kafka - spring-kafka AckMode中的MANUAL和MANUAL_IMMEDIATE有什么区别
- reactjs - 使用 gh-pages 部署 React App,组件出现 404 错误
- python - VS Code Python 语法高亮只工作了一半
- sql-server - 使用 vb.net 更新 SQL Server 数据库中的表
- pandas - 用熊猫加载csv,错误的列
- sql - SQL 选择语句,用于识别“鲍勃”曾经写过的每一本书的合著者
- sql - 将 varchar 数据类型转换为 datetime 数据类型时出现问题