【发布时间】:2017-07-26 06:46:32
【问题描述】:
更新到 Android Studio 2.3 后,当我尝试运行一些 espresso 测试时,我收到以下错误:
测试运行失败:找不到仪器信息:ComponentInfo{com.example.android/android.test.InstrumentationTestRunner} 空测试套件。
这在过去很容易解决,在运行配置中我可以指定我自己的InstrumentationRunner。现在我似乎找不到这个选项,所以我现在无法真正指定我的跑步者类。
请注意,我的构建 gradle 确实包含
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resConfigs "en", "es"
}
【问题讨论】:
-
我已经转移到只从终端运行连接的测试,直到我能弄清楚如何让它们再次在 IDE 上工作。
-
做了同样的事情,但我正在寻找更方便的解决方案;)
标签: android testing automation automated-tests android-espresso