Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/181.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 启用TestCoverage时未找到任何测试_Android_Android Espresso_Android Testing - Fatal编程技术网

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来说不太合适

是否有一个错误提交给谷歌?是否有一个错误提交给谷歌?