robotium: play only one test with android studio

31 views Asked by At

I have the following Robotium test class:

public class StartupActivityTest extends ActivityInstrumentationTestCase2<StartupActivity>
{
    ...
    public void testFeature1() { ... }
    public void testFeature2() { ... }
    public void testFeature3() { ... }
    ...
}

I am using Android Studio to play all my tests.

But How can I play only a single test (testFreature2 for example)?

1

There are 1 answers

0
Laurent D. On

I finally found a solution: in Android Studio, right-click on the test method and select "Run ..."