test
pants test [args]
Run tests.
Backend: ``
Config section: [test]
Basic options
debug
--[no-]test-debugPANTS_TEST_DEBUGpants.toml
[test]
debug = <bool>
default:
FalseRun tests sequentially in an interactive process. This is necessary, for example, when you add breakpoints to your code.
extra_env_vars
--test-extra-env-vars="['<str>', '<str>', ...]"PANTS_TEST_EXTRA_ENV_VARSpants.toml
[test]
extra_env_vars = [
'<str>',
'<str>',
...,
]
default:
[]Additional environment variables to include in test processes. Entries are strings in the form ENV_VAR=value to use explicitly; or just ENV_VAR to copy the value of a variable in Pants's own environment.
force
--[no-]test-forcePANTS_TEST_FORCEpants.toml
[test]
force = <bool>
default:
FalseForce the tests to run, even if they could be satisfied from cache.
open_coverage
--[no-]test-open-coveragePANTS_TEST_OPEN_COVERAGEpants.toml
[test]
open_coverage = <bool>
default:
FalseIf a coverage report file is generated, open it on the local system if the system supports this.
output
--test-output=<ShowOutput>PANTS_TEST_OUTPUTpants.toml
[test]
output = <ShowOutput>
one of:
default:
all, failed, nonedefault:
failedShow stdout/stderr for these tests.
use_coverage
--[no-]test-use-coveragePANTS_TEST_USE_COVERAGEpants.toml
[test]
use_coverage = <bool>
default:
FalseGenerate a coverage report if the test runner supports it.
Advanced options
None
Deprecated options
None