about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorMartin Pool <mbp@sourcefrog.net>2025-06-20 13:18:05 -0700
committerMartin Pool <mbp@sourcefrog.net>2025-06-20 13:22:14 -0700
commit4acf3baecda9c5080bcfdc1ebb4560fbb2a4567e (patch)
tree0138ba21b223dd3956621fdede3c6dc83a4a998d /src/doc
parent9c4ff566babe632af5e30281a822d1ae9972873b (diff)
downloadrust-4acf3baecda9c5080bcfdc1ebb4560fbb2a4567e.tar.gz
rust-4acf3baecda9c5080bcfdc1ebb4560fbb2a4567e.zip
libtest: expose --fail-fast
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc/src/tests/index.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/doc/rustc/src/tests/index.md b/src/doc/rustc/src/tests/index.md
index 12de69a4c9e..7033184e52a 100644
--- a/src/doc/rustc/src/tests/index.md
+++ b/src/doc/rustc/src/tests/index.md
@@ -158,6 +158,16 @@ unstable-options` flag. See [tracking issue
 
 The following options affect how tests are executed.
 
+#### `--fail-fast`
+
+Stops tests after the first failure.
+
+If running tests in parallel (which is the default), then tests that have already been started on
+other threads will be allowed to run to completion before the process exits.
+
+Note that when running tests in parallel, the test execution order is non-deterministic:
+if multiple tests would fail, the first failure encountered will be reported.
+
 #### `--test-threads` _NUM_THREADS_
 
 Sets the number of threads to use for running tests in parallel. By default,