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

来源:互联网 发布:matlab矩阵最大值位置 编辑:程序博客网 时间:2024/06/06 08:43

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

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

阅读全文
0 0
原创粉丝点击