我正在为我的代码做单元测试。即使我有测试套件,它也会显示为"Empty test suite“with Pol idea test runner。
客户端尚未准备好..开始运行测试测试运行失败:找不到以下测试套件的检测信息: ComponentInfo{com.example/pl.polidea.instrumentation.PolideaInstrumentationTestRunner}为空测试套件。
发布于 2017-02-22 20:38:45
很长一段时间后,我找到了自己的答案:
我们必须在build.gradle文件的defaultConfig中指定testInstrumentationRunner
defaultConfig {
testInstrumentationRunner "pl.polidea.instrumentation.PolideaInstrumentationTestRunner"
} https://stackoverflow.com/questions/42383636
复制相似问题