Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Options

Matti Schneider edited this page Sep 9, 2013 · 3 revisions

CLI options

The following options may be passed to the CLI watai tool invocation.

Behavior modifiers

--config json_hash

The --config option allows for call-time configuration files overrides.

It takes a JSON hash, formatted according to the JSON configuration specification.

Example:

// 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

Helpers

--help

Displays Watai's synopsis and exits.

Exit code: 0, as you explicitly requested the help only.

--version

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.

Clone this wiki locally