CLI Reference
karva
A Python test runner.
Usage
| Text Only | |
|---|---|
1 | |
Commands
karva testRun tests
karva versionDisplay Karva's version
karva helpPrint this message or the help of the given subcommand(s)
karva test
Run tests
Usage
| Text Only | |
|---|---|
1 | |
Arguments
PATHSList of files, directories, or test functions to test [default: the project root]
Options
--colorcolorControl when colored output is used
Possible values:
auto: Display colors if the output goes to an interactive terminalalways: Always display colorsnever: Never display colors
--config-filepathThe path to a
karva.tomlfile to use for configuration.While ty configuration can be included in a
pyproject.tomlfile, it is not allowed in this context.May also be set with the
KARVA_CONFIG_FILEenvironment variable.--fail-fastWhen set, the test will fail immediately if any test fails
--help,-hPrint help (see a summary with '-h')
--no-ignoreWhen set, .gitignore files will not be respected
--no-progressWhen set, we will not show individual test case results during execution
--output-formatoutput-formatThe format to use for printing diagnostic messages
Possible values:
full: Print diagnostics verbosely, with context and helpful hints (default)concise: Print diagnostics concisely, one per line
--quiet,-qUse quiet output (or
-qqfor silent output)--test-prefixtest-prefixThe prefix of the test functions
--verbose,-vUse verbose output (or
-vvand-vvvfor more verbose output)
karva version
Display Karva's version
Usage
| Text Only | |
|---|---|
1 | |
Options
--help,-hPrint help
karva help
Print this message or the help of the given subcommand(s)
Usage
| Text Only | |
|---|---|
1 | |