2017-02-22 95 views
1

我正在爲我的代碼做單元測試。即使我有測試套件,它也會作爲Pol idea test runner的「空測試套件」。PolIdeaTestRunner空測試套件

客戶端還沒有準備好.. 開始運行測試 試運行失敗:無法找到儀器儀表信息:ComponentInfo {com。示例/ pl.polidea.instrumentation.PolideaInstrumentationTestRunner} 空測試套件。

回答

1

後很長一段時間中回答我的自我:

,我們必須指定defaultConfig的testInstrumentationRunner中的build.gradle文件

defaultConfig { 
    testInstrumentationRunner "pl.polidea.instrumentation.PolideaInstrumentationTestRunner" 
}