首页 > 解决方案 > 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 的其他答案,但它们对我没有帮助。

标签: androidtesting

解决方案


推荐阅读