由于&java; langtimeException' java.lang.RuntimeException'用勺子?

时间:2014-08-07 13:01:24

标签: android gradle android-espresso spoon

我正在尝试让Spoon使用Gradle,因此我使用这个插件:

https://github.com/stanfy/spoon-gradle-plugin

我使用Espresso来编写UI测试

基本上它似乎工作,我可以通过命令行启动gradle任务,它找到连接的设备并创建一个报告。

刚刚失败,在报告中我有一条错误消息:

由于&java; Lang.lang.RuntimeException'

,检测运行失败

我的控制台输出:

02:28:59 D/app-myproject-debug.apk: Uploading app-myproject-debug.apk onto device '1fd0b003'
02:28:59 D/Device: Uploading file onto device '1fd0b003'
02:29:06 D/app-myproject-debug-test-unaligned.apk: Uploading app-myproject-debug-test-unaligned.apk onto device '1fd0b003'
02:29:07 D/Device: Uploading file onto device '1fd0b003'
2014-08-07 14:29:14 [SDR.run] About to actually run tests for [1fd0b003]
02:29:14 I/RemoteAndroidTest: Running am instrument -w -r  com.bonial.myproject.test/com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner on samsung-sm_n9005-1fd0b003
02:29:27 I/InstrumentationResultParser: test run failed: 'Instrumentation run failed due to 'java.lang.IllegalStateException''
2014-08-07 14:29:27 [STRL.testRunStarted] testCount=0 runName=com.bonial.myproject.test
2014-08-07 14:29:27 [STRL.testRunFailed] errorMessage=Instrumentation run failed due to 'java.lang.IllegalStateException'
2014-08-07 14:29:27 [STRL.testRunEnded] elapsedTime=0
02:29:27 I/XmlResultReporter: XML test result file generated at /Users/daniel/android/app/build/spoon/myproject/debug/junit-reports/1fd0b003.xml. Total tests 0, Failed 0, Error 0
2014-08-07 14:29:27 [SDR.run] About to grab screenshots and prepare output for [1fd0b003]
2014-08-07 14:29:27 [SDR.run] Pulling screenshots from [1fd0b003] /data/data/com.packagename.myproject/app_spoon-screenshots
2014-08-07 14:29:27 [SR.runTests] [1fd0b003] Execution done.
02:29:30 D/ddms: Waiting for Monitor thread
:app:spoonMyprojectDebugTest FAILED

0 个答案:

没有答案