Android Idea测试错误信息:无法将测试报告附加到测试框架Android



我正在尝试测试Android应用程序下面的说明:http://www.jetbrains.com/idea/webhelp/testing-android-applications.html

http://developer.android.com/guide/topics/testing/index.html

当我运行测试时,它显示"实例化测试"一段时间,然后显示"无法将测试报告程序附加到测试框架或测试框架意外退出"。

模拟器启动正常,但屏幕上没有显示任何内容。

控制台显示:

Testing started at 11:41 AM ...
Waiting for device.
C:Androidtoolsemulator.exe -avd GoogleAPI_2_3_3 -netspeed full -netdelay none
Device connected: emulator-5554
Device is online: emulator-5554
Target device: emulator-5554 (GoogleAPI_2_3_3)

Uploading file
local path: C:Users<omitted details>.apk
remote path: /data/local/tmp/com.mycompany
Installing com.mycompany
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.mycompany"
pkg: /data/local/tmp/com.mycompany
Success

Running testsTest running startedFinish

Logcat似乎没有任何有用的东西。特别是它不显示日志。我在测试中添加的d条消息

有趣的是,有人在Intellij开发者社区论坛上问了这个问题:

http://devnet.jetbrains.net/message/5363961 # 5363961

但是这个问题已经几个月没有答案了。

谁有诊断这个问题的想法?

这是一个已知的问题,如果没有测试方法就会发生。定义至少一个测试方法来修复它

最新更新