2

I have a few tests that have multiple annotations:

@Test
@LargeTest
@FlakyTest

I found a way to run only @LargeTest from here.

./gradlew app:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.size=large

Is there a way to run all Instrumentation Tests except those annotated as @FlakyTest?

Prabin Timsina
  • 2,131
  • 3
  • 16
  • 27

1 Answers1

2
android {
  defaultConfig {
    testInstrumentationRunnerArgument 'notAnnotation', 'android.test.suitebuilder.annotation.FlakyTest'
  }
}
Prabin Timsina
  • 2,131
  • 3
  • 16
  • 27