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).
Run Code Online (Sandbox Code Playgroud)
所以我在 CI 上运行测试,这个错误随机弹出,有时它会找到 2 个测试并运行它。但大多数时候我都会得到这个。
当我尝试通过执行以下命令来运行Android测试时:
./gradlew connectedDebugAndroidTest
Run Code Online (Sandbox Code Playgroud)
发生以下错误:
com.android.builder.testing.ConnectedDevice > No tests found.[devicename] 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).
:connectedDebugAndroidTest FAILED
FAILURE: Build failed with an exception.
Run Code Online (Sandbox Code Playgroud)
我还没有做出任何更改到build.gradle或gradle-wrapper.properties文件.
通过将所有内容更新到最新版本(gradle,android插件,构建工具等)无法解决问题
所有测试以前都是成功的.什么可能导致这种神秘回归?谢谢.
我正在 android studio 中为我的应用程序进行一些 espresso 测试,它正在工作并突然停止工作,基本上测试构建并启动,但它卡在测试结果中并且什么也不显示,我的意思是它显示没有测试通过。如果有人可以帮助我,我将不胜感激,谢谢