在使用android studio进行单元测试的时候报错
Test running failed: Unable to find instrumentation info for: ComponentInfo{top.ljaer.www.phonemanager.test/android.test.InstrumentationTestRunner}
Empty test suite.
解决方法
点击Edit Configurations进行编辑
将Specific instrumentation runner改为com.android.test.runner.MultiDexTestRunner
再次点击运行
单元测试正常
$ adb shell am instrument -w -r -e debug false -e class top.ljaer.www.phonemanager.BlackNumTest#testQueryAllBlackNum top.ljaer.www.phonemanager.test/com.android.test.runner.MultiDexTestRunner
Client not ready yet..
Started running tests
Tests ran to completion.
更多推荐
Test running failed: Unable to find instrumentation info for: ComponentInfo
发布评论