I am following the steps exactly as mentioned here to create instrumentation unit test cases. This is my Test class in the androidTest->Java->com.mypackage.name
package
@RunWith(AndroidJUnit4.class)
@SmallTest
public class Test {
private List<String> list;
@Before
public void initList(){
list = new ArrayList<>();
}
@org.junit.Test
public void searchPlace() {
assert list.size() == 0;
}
}
But when I execute this test case, I get a message saying
Process finished with exit code 1
Class not found: "com.package.base.Test"Empty test suite.
Is there anything that I am doing wrong?