android – 在IntelliJ中运行RoboElectric 2测试的Instrumentation错误

android – 在IntelliJ中运行RoboElectric 2测试的Instrumentation错误,第1张

概述我有一个简单的 Android项目,它使用RoboElectric 2和Maven. 我可以使用以下方法运行我的测试: mvn clean test 但测试无法在IntelliJ IDEA中运行.尝试从IntelliJ IDEA运行测试时出现这个奇怪的错误 Running testsTest running startedTest running failed: Unable to find i 我有一个简单的 Android项目,它使用RoboElectric 2和Maven.

我可以使用以下方法运行我的测试:

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错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1124877.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存