test
./pants test [args]
Run tests.
Backend: pants.core
Config section: [test]
Basic options
False
Run tests sequentially in an interactive process. This is necessary, for example, when you add breakpoints to your code.
False
Force the tests to run, even if they could be satisfied from cache.
all, failed, none
default:
failed
Show stdout/stderr for these tests.
False
Generate a coverage report if the test runner supports it.
False
If a coverage report file is generated, open it on the local system if the system supports this.
[]
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.
Advanced options
False
Write test reports to --report-dir.
{distdir}/test/reports
Path to write test reports to. Must be relative to the build root.
Deprecated options
None
Deprecated, is scheduled to be removed in version: 2.13.0.dev0.
Set the `report` option in [test] scope to emit reports to a standard location under dist/. Set the `report-dir` option to customize that location.
Specifying a directory causes Junit XML result files to be emitted under that dir for each test run that supports producing them.
Updated 9 months ago