Skip to main content

test

Usage: chr test [OPTIONS]

Run tests in working directory

Options:
-m, --modules MODULES Select which modules to test, will default to tests
in settings file (Comma separated)
-s, --settings SETTINGS Alternate path for the project settings file
(default: config.yml)
--tests TEXT test method pattern
--use-db If a session towards the configured database should
be established
--no-color Do not use ansi colors
-h, --help Show this message and exit

You can use the test command (chr test) to run the tests specified in the test key in the project config file (config.yml).

  • Runs all the tests under the test attribute if the current working directory is where the config.yml file exists:
chr test
  • Runs all the tests under the test attribute of a selected Project Settings file:
chr test --settings config.yml
  • Runs a specific test module:
chr test --settings config.yml --modules test.data_test
  • Runs all the tests based on the specified text filter:
chr test --tests my_filter