运行“Android JUnit Test”出现了如下警告:
No instrumentation runner found for the launch, using android.test.InstrumentationTestRunner.
原因是:模拟器没能够记住manifest的配置,在运行时需要重新设置运行配置
解决步骤如下:
1.在工程点右键->选properties
2.在Run/Debug setting中选择要运行的工程名字,点击右边的Edit,会进入下面的界面,在 instrumentation runner后面的下拉列表中选择:android.test.InstrumentationTestRunner(如下图)
3.重新运行该测试单元,则就不会出现上面的警告了。