最初,我编写了Android测试用例。他们的工作非常好。但在我尝试Robolectric然后切换回Android测试框架后,我开始收到此错误。但是,在出错之后,我收到了消息Empty test suite
。
stacktrace:
12:47:08 I/RemoteAndroidTest: Running am instrument -w -r -e debug false -e class in.dash.dashapp.ApplicationTest in.dash.dashapp.test/android.test.InstrumentationTestRunner on Nexus_4_API_17_2 [emulator-5554]
12:47:08 I/InstrumentationResultParser: test run failed: 'Instrumentation run failed due to 'java.lang.NullPointerException''