Android studio运行单元测试报错: Class Not Found: Empty Test Suite

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaoluoli88/article/details/78657364

使用Espresso时报错
Class not found: “com.test.LoginUnitTest”Empty test suite.
原因:没有将该测试类添加到InstrumentedTest中
解决:
1.打开配置,选择Edit Configurations
这里写图片描述

2.添加该测试类,点击+选择Android Instrumented Tests就可以进行添加了
这里写图片描述

猜你喜欢

转载自blog.csdn.net/xiaoluoli88/article/details/78657364