Can't make Robotium work. It used to, but now always fails with an error:
Running tests
Test running startedFinish
Empty test suite.
My test draft:
public class MainActivityTest extends ActivityInstrumentationTestCase2 <MainActivity> {
private Solo solo;
public MainActivityTest() {
super(MainActivity.class);
}
@Override
protected void setUp() throws Exception {
super.setUp();
solo = new Solo(getInstrumentation(), getActivity());
}
@Override
protected void tearDown() throws Exception {
super.tearDown();
solo.finishOpenedActivities();
}
@Override
protected void runTest() throws Throwable {
super.runTest();
}
}
build.gradle
defaultConfig {
applicationId "my.app"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
}
AndroidManifest.xml
<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="my.app"/>
In Edit configurations
for instrumentation runner I have android.test.InstrumentationTestRunner
. Where's the problem?