@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. Takes multiple values | ./.betterer.ts |
-r , --results [value] | Path to test results file relative to CWD | ./.betterer.results |
-t , --tsconfig [value] | Path to TypeScript config file relative to CWD | null |
-f , --filter [value] | Select tests to run by RegExp. Takes multiple values | [] |
-s , --silent | Disable all logging | false |
-u , --update | Force update the results file, even if things get worse | false |
-R , --reporter [value] | npm package name or file path to a Betterer reporter. Takes multiple values | Default reporter |
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. Takes multiple values | ./.betterer.ts |
-r , --results [value] | Path to test results file relative to CWD | ./.betterer.results |
-t , --tsconfig [value] | Path to TypeScript config file relative to CWD | null |
-f , --filter [value] | Select tests to run by RegExp. Takes multiple values | [] |
-s , --silent | Disable all logging | false |
-u , --update | Force update the results file, even if things get worse | false |
-i , --ignore [value] | Ignore files by Glob when running in watch mode. Takes multiple values | [] |
-R , --reporter [value] | npm package name or file path to a Betterer reporter. Takes multiple values | Default reporter |