Skip to content

Commit

Permalink
Merge pull request #27 from Banno/readme-annotations
Browse files Browse the repository at this point in the history
Add Compatibility with Android extension Section to README
  • Loading branch information
joshschriever authored Apr 27, 2020
2 parents 6680e25 + 02d1760 commit 483923d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,25 @@ gordon {
- `PhonesAndTablets` - devices are split into pools based on type, so each test will run on one phone and one tablet
- `Manual` - create your own pools with specific devices - each test will run on one device from each pool

### Compatibility with Android extension
Gordon is compatible with most testing options that can be configured in the Android extension, including `size`/`annotation`/`notAnnotation` arguments and disabling animations for tests.

#### Example build.gradle.kts
```kotlin
android {
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

testInstrumentationRunnerArgument("size", "medium")
testInstrumentationRunnerArgument("notAnnotation", "androidx.test.filters.FlakyTest")

testOptions.animationsDisabled = true
}
}
```

In this example, the AndroidX `AndroidJUnitRunner` will be used, animations will be disabled, and the only tests run will be those annotated with `@MediumTest`, but not `@FlakyTest`.

## Running

#### Tasks
Expand Down

0 comments on commit 483923d

Please sign in to comment.