From 96eab31d31e5cbab647a4b4bfce4a83393784919 Mon Sep 17 00:00:00 2001 From: Rain Date: Wed, 4 Dec 2024 20:01:50 +0000 Subject: [PATCH] [site] small doc edit --- site/src/docs/running.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/site/src/docs/running.md b/site/src/docs/running.md index cddac6446a2..7093ab5aac6 100644 --- a/site/src/docs/running.md +++ b/site/src/docs/running.md @@ -185,18 +185,21 @@ cargo nextest run -E 'platform(host)' ## Other runner options `--max-fail=N` -: Number of tests that can fail before aborting the test run. Useful for uncovering multiple issues without having to run the whole test suite. +: Number of tests that can fail before aborting the test run, or `all` to run all tests regardless of the number of failures. Useful for uncovering multiple issues without having to run the whole test suite. `--no-fail-fast` -: Do not exit the test run on the first failure. Most useful for CI scenarios. Equivalent to `--max-fail=all` +: Do not exit the test run in case a test fails. Most useful for CI scenarios. Equivalent to `--max-fail=all`. -`-j`, `--test-threads` +`--fail-fast` +: Exit the test run on the first failure. This is the default behavior. Equivalent to `--max-fail=1`. + +`-jN`, `--test-threads=N` : Number of tests to run simultaneously. Note that this is separate from the number of build jobs to run simultaneously, which is specified by `--build-jobs`. -`--run-ignored only` +`--run-ignored=only` : Run only ignored tests. (With prior nextest versions, use `--run-ignored ignored-only`.) -`--run-ignored all` +`--run-ignored=all` : Run both ignored and non-ignored tests. ## Controlling nextest's output