Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshschriever authored Sep 1, 2022
1 parent b80c954 commit dee37f3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,14 @@ In this example, the AndroidX `AndroidJUnitRunner` will be used, animations will
## Running

#### Tasks
Gordon registers a Gradle task for each tested variant, stripping `Debug` from the task name because it's redundant.
Gordon registers a Gradle task for each tested variant, stripping `testBuildType` (normally `Debug`) from the task name because it's redundant.

For example, if you have no flavors defined, the following task is registered:
- `gordon` - the equivalent of `connectedDebugAndroidTest`

If you have a `mode` dimension with `demo` and `full` flavors, plus a `staging` build type in addition to the standard `debug` and `release` types, the following tasks are registered:
- `gordonDemo` - the equivalent of `connectedDemoDebugAndroidTest`
- `gordonFull` - the equivalent of `connectedFullDebugAndroidTest`
- `gordonDemoStaging` - the equivalent of `connectedDemoStagingAndroidTest`
- `gordonFullStaging` - the equivalent of `connectedFullStagingAndroidTest`
If you have a `mode` dimension with `demo` and `full` flavors, plus a `staging` build type in addition to the standard `debug` and `release` types, and you set your `testBuildType` to `staging`, the following tasks are registered:
- `gordonDemo` - the equivalent of `connectedDemoStagingAndroidTest`
- `gordonFull` - the equivalent of `connectedFullStagingAndroidTest`

#### Filtering
There is a `--tests` commandline option that overrides the `testFilter` set in the `gordon` extension if both are specified.
Expand Down

0 comments on commit dee37f3

Please sign in to comment.