-
Notifications
You must be signed in to change notification settings - Fork 7
Options
The following options may be passed to the CLI watai
tool invocation.
The --config
option allows for call-time configuration files overrides.
It takes a JSON hash, formatted according to the JSON configuration specification.
// my/suite/folder/config.json
{
"baseURL": "http://127.0.0.1/",
"timeout": 500
}
Invocation:
$ watai --config '{"timeout":10000}' my/suite/folder # will execute the suite with a 10000 ms timeout
Displays Watai's synopsis and exits.
Exit code: 0
, as you explicitly requested the help only.
Displays a single line (since v0.4) containing the package.json
version identifier, making it easy to match against.
Exit code: 0
, as you explicitly requested the version only.
Does basic bootstrapping tests to check if Watai seems to be properly installed.
Exit code: 0
if Watai seems to be properly installed, 1
otherwise.
These options are mostly suited for developers of Watai itself or advanced users.
The --setup
option allows for call-time setup override. It takes a JSON hash, formatted according to the JSON configuration specification.
Learn more about setup.