AndroidX 浓缩咖啡测试未运行,尝试了一个示例应用程序并可以使其工作,而不是在具有许多模块的缩放项目上



我有一个至少包含 12 个模块的缩放项目。我想启动应用程序模块并运行项目。 每次我尝试启动它时,我都会收到这样的消息:

$ adb shell CLASSPATH=$(pm path androidx.test.services) app_process / androidx.test.services.shellexecutor.ShellMain am instrument -r -w -e targetInstrumentation *** ... *** androidx.test.orchestrator/androidx.test.orchestrator.AndroidTestOrchestrator
Client not ready yet..
Started running tests
Test running failed: No test results. 

我通读了关于浓缩咖啡使用的AndroidX文档,并有

  • 包括ANDROIDX_TEST_ORCHESTRATOR
  • 已包括所需的 使用库函数的库
  • 将测试运行程序设置为使用 androidx-testRunner。

我能够使用 Espresso 测试运行器生成测试,但每次尝试运行它时,我都会收到此消息。只是为了确保我制作了一个示例应用程序并测试了整个内容,并且我能够在示例应用程序上进行检测测试。

有谁知道在使用依赖注入的多模块项目中会发生什么?

它与模块或项目大小无关,删除ANDROIDX_TEST_ORCHESTRATOR使其工作。

相关内容

最新更新