Issue
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?
Solution
android {
defaultConfig {
testInstrumentationRunnerArgument 'notAnnotation', 'android.test.suitebuilder.annotation.FlakyTest'
}
}
Answered By - Prabin Timsina
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.