Skip to content

Command line flags

Even after a configuration file is loaded, you can override specific settings using command-line flags.

Example

$ chainsaw test                         \
    --config path/to/your/config.yaml   \
    --test-dir path/to/test/dir         \
    --assert-timeout 45s                \
    --skip-delete false                 \
    --fail-fast true                    \
    --parallel 4                        \
    ...

In this example, Chainsaw will load a configuration file but the timeout configuration and other settings will be overridden by the values set in the flags, regardless of the value in the loaded configuration file.

Usage

The command below will run tests using the configuration from my-config.yaml, taking tests from /path/to/tests, and running a maximum of 10 tests simultaneously.

$ chainsaw test --config my-config.yaml --test-dir /path/to/tests --parallel 10

Reference documentation

See Chainsaw test command reference for more details.