Skip to content

Commit

Permalink
Updated README for flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcc007 committed Jul 23, 2019
1 parent 0f39205 commit 4a2b810
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,19 @@ $ screenshots -c <path to config file>
Other options:
```
$ screenshots -h
usage: screenshots [-h] [-c <config file>] [-m <normal|recording|comparison|archive>]
usage: screenshots [-h] [-c <config file>] [-m <normal|recording|comparison|archive>] [-f <flavor>]
sample usage: screenshots
-c, --config=<screenshots.yaml> Path to config file.
(defaults to "screenshots.yaml")
-m, --mode=<normal|recording|comparison|archive> If mode is recording, screenshots will be saved for later comparison.
If mode is archive, screenshots will be archived and cannot be uploaded via fastlane.
If mode is comparison, screenshots will be compared with recorded.
If mode is archive, screenshots will be archived (and cannot be uploaded via fastlane).
[normal (default), recording, comparison, archive]
-f, --flavor=<flavor name> Flavor name.
-h, --help Display this help information.
```

Expand Down Expand Up @@ -134,7 +136,7 @@ Note: to turn off the debug banner on your screens, in your integration test's m
````

## Modifying tests based on screenshots environment
In some cases it is useful to know what device, device type, screen size and locale you are currently testing with. To obtain this information in your test use:
In some cases it is useful to know what device, device type, screen size, screen orientation and locale you are currently testing with. To obtain this information in your test use:
```
final screenshotsEnv = config.screenshotsEnv;
```
Expand Down

0 comments on commit 4a2b810

Please sign in to comment.