Some other options accepted by
cargo nextest run. Many of these options are also accepted as configuration settings and environment variables.
--no-fail-fast: do not exit the test run on the first failure. Most useful for CI scenarios.
-j, --test-threads: number of tests to run simultaneously. Note that this is separate from the number of build jobs to run simultaneously, which is specified by
--run-ignored ignored-onlyruns ignored tests, while
--run-ignored allruns both ignored and non-ignored tests.
These options control when standard output and standard error are displayed for failing and passing tests, respectively. The possible values are:
immediate: display output as soon as the test fails. Default for
final: display output at the end of the test run.
immediate-final: display output as soon as the test fails, and at the end of the run. This is most useful for CI jobs.
never: never display output. Default for
These options can also be configured via global configuration and per-test overrides. Specifying these options over the command line will override configuration settings.
--status-level: which test statuses (PASS, FAIL etc) to display. There are 7 status levels:
none, fail, retry, slow, pass, skip, all. Each status level causes all earlier status levels to be displayed as well (similar to log levels). (For example, setting
skipwill show failing, retried, slow and passing tests along with skipped tests.) The default is
--final-status-level: which test statuses to display at the end of a test run. For example, this can be set to
failto print out a list of failing tests at the end of a test run. The default is
For a full list of options, see Options and arguments.