@betterer/cli
CLI module for Betterer
.
Usage
Init
Initialise Betterer
in a project
betterer init -c ./path/to/config
Init options
Name | Description | Default |
---|
-c , --config [value] | Path to test definition file relative to CWD | ./.betterer.ts |
Start
Run Betterer
betterer -c ./path/to/config -r ./path/to/results -w
Start options
Name | Description | Default |
---|
-c , --config [value] | Path to test definition file relative to CWD | ./.betterer.ts |
-r , --results [value] | Path to test results file relative to CWD | ./.betterer.results |
-f , --filter [value] | Select tests to run by RegExp. Takes multiple values | [.*] |
-u , --update | Force update the results file, even if things get worse | false |
Watch
Run Betterer
in watch mode
betterer watch -c ./path/to/config -r ./path/to/results
Watch options
Name | Description | Default |
---|
-c , --config [value] | Path to test definition file relative to CWD | ./.betterer.ts |
-r , --results [value] | Path to test results file relative to CWD | ./.betterer.results |
-f , --filter [value] | Select tests to run by RegExp. Takes multiple values | [.*] |
-i , --ignore [value] | Ignore files by Glob when running in watch mode. Takes multiple values | [] |