
我可以使用以下方法运行我的测试:
mvn clean test
但测试无法在IntelliJ IDEA中运行.尝试从IntelliJ IDEA运行测试时出现这个奇怪的错误
Running testsTest running startedTest running Failed: Unable to find instrumentation info for: ComponentInfo{com.example/androID.test.InstrumentationTestRunner}Empty test suite. 我在IDE中没有其他错误,所有内容都在IntelliJ中正确编译和部署到设备.
解决方法 “无法找到仪器”建议您尝试将其作为AndroID测试运行 – 是不是这样?它应该作为JUnit测试运行(使用RoboElectric建议您编写标准单元测试) 总结以上是内存溢出为你收集整理的android – 在IntelliJ中运行RoboElectric 2测试的Instrumentation错误全部内容,希望文章能够帮你解决android – 在IntelliJ中运行RoboElectric 2测试的Instrumentation错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)