1

You can currently run specific Android tests in Android studio by following the accepted answer of this question

android {
  //....
  defaultConfig {
  //....
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    testInstrumentationRunnerArgument "size", "small"
  }
}

Is there a way to do this without editing Gradle files?

Community
  • 1
  • 1
Daiwik Daarun
  • 3,804
  • 7
  • 33
  • 60
  • 2
    In Android Studio 2.1, right-click over the test class or the test package in the explorer tree to run just what's in there. In the source editor, each test method should have a "run" button in the gutter that can be used to run that individual test method. You can also set up run configurations for these scopes. – CommonsWare Jun 13 '16 at 22:18
  • Is there any way to have similar GUI test selection for annotations such as `@SmallTest`? – Daiwik Daarun Jun 13 '16 at 23:07
  • I do not see an option for that, sorry. – CommonsWare Jun 13 '16 at 23:13

0 Answers0