gpt4 book ai didi

android - testCoverageEnabled 时未找到测试

转载 作者:行者123 更新时间:2023-11-29 15:35:55 27 4
gpt4 key购买 nike

每当我尝试创建覆盖率报告时都会遇到此错误:

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).

我修改了示例存储库以重现该问题: https://github.com/suarezjulian/unified-code-coverage-android

只需下载并执行:

./gradlew jacocoTestReport

最佳答案

您正在运行 Test Orchestrator 版本 1.0.2,请尝试将版本降低到 1.0.1。我也遇到过这个问题,也许 1.0.2 不能很好地与 Jacoco 一起玩。

关于android - testCoverageEnabled 时未找到测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50223522/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com