Android 启用TestCoverage时未找到任何测试
每当我尝试创建覆盖率报告时,都会出现此错误:Android 启用TestCoverage时未找到任何测试,android,android-espresso,android-testing,Android,Android Espresso,Android Testing,每当我尝试创建覆盖率报告时,都会出现此错误: Instrumentation run failed due to 'Process crashed.' com.android.builder.testing.ConnectedDevice > No tests found.[Pixel 2 - 8.1.0] FAILED No tests found. This usually means that your test classes are not in the form that
Instrumentation run failed due to 'Process crashed.'
com.android.builder.testing.ConnectedDevice > No tests found.[Pixel 2 - 8.1.0] 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).
我修改了样本回购协议,以重现该问题:
只需下载并执行:
./gradlew jacocoTestReport
您正在运行Test Orchestrator版本1.0.2,请尝试将该版本降低到1.0.1。我在这方面也遇到了麻烦,也许1.0.2对Jacoco来说不太合适 您正在运行TestOrchestrator版本1.0.2,请尝试将该版本降低到1.0.1。我在这方面也遇到了麻烦,也许1.0.2对Jacoco来说不太合适 是否有一个错误提交给谷歌?是否有一个错误提交给谷歌?