-
Notifications
You must be signed in to change notification settings - Fork 21
Command line examples
The full range of command-line arguments for Iris is viewed by passing in the -h
flag, but this is a quick start. These are listed from most to least frequently used.
Positional argument to specify test target
This is the name of the target to run tests on.
iris sample
-t Tests to run
One or more tests, separated by commas, no spaces. The .py suffix is not necessary.
iris sample -t test_1
-d Test directories to run
One or more package directories, separated by commas, no spaces.
iris sample -d section2
-x Tests or directories to exclude
One or more tests/directories, separated by commas, to exclude from the run.
iris sample -x section1
-l Locale
Download build from list of supported locales, currently: 'en-US', 'zh-CN', 'es-ES', 'de', 'fr', 'ru', 'ar', 'ko', 'pt-PT', 'vi', 'pl', 'tr', 'ro', 'ja'
iris sample -l ro
-i Debug level
iris sample -i DEBUG
Controls the verbosity of logging output. Parameters are 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG'. The default is 'INFO', but choosing 'DEBUG' will generate much more information.
-c Clean
When used, delete all old runs and cached builds on disk in the Iris Control Center.
iris sample -c
-m Max tries
Number of times to run a failing test before giving up. The default is 3, meaning that after three failures, the test will be permanently marked FAIL and Iris will move on to the next test. Adjusting this number lower or higher adjusts tolerance for flaky tests. To enforce the strictest tolerance for failure, you can use 1.
iris sample -m 1
-n No check for key lock
Turns off the default check for toggled keys on the keyboard. Iris tests may not function correctly when users have certain keys toggled, but for reasons of speed or compatibility, this check can be disabled.
iris sample -n
-b Spotlight
Turn on real-time pattern, region, and location spotlighting on screen. Helpful to debug a test, but can add artificial errors if a pattern search time has been exceeded because of drawing operations.
iris sample -b
-e Email results
Send summary of results to an email address, using credentials provided in config file.
-o Override
Run tests, even if disabled.
iris sample -o
-p Port
Port to use for local web server. Defaults to 2000, override if this is a problem for your local Iris use.
iris sample -p 2001
-w Working directory
Change working directory of project. The default value is ~/.iris
.
Installation
Running Iris
- Basic workflow
- Useful examples
- Using the Control Center - coming soon
- Runtime argument list - coming soon
Contributing to Iris
- Iris APIs - coming soon
- Creating images
- Code style guide - coming soon
- Getting code into Iris
- Communicating with the team - coming soon