Document `x test --no-capture` (#2174)

This commit is contained in:
clubby789 2024-12-28 11:55:20 +00:00 committed by GitHub
parent daaa4668e2
commit a749d66e1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,14 @@ See the [Adding new tests](adding.md) and [Best practies](best-practices.md)
chapters for a tutorial on creating a new test and advice on writing a good chapters for a tutorial on creating a new test and advice on writing a good
test, and the [Running tests](running.md) chapter on how to run the test suite. test, and the [Running tests](running.md) chapter on how to run the test suite.
Arguments can be passed to compiletest using `--test-args` or by placing them after `--`, e.g.
- `x test --test-args --force-rerun`
- `x test -- --force-rerun`
Additionally, bootstrap accepts several common arguments directly, e.g.
`x test --no-capture --force-rerun --run --pass`.
Compiletest itself tries to avoid running tests when the artifacts that are Compiletest itself tries to avoid running tests when the artifacts that are
involved (mainly the compiler) haven't changed. You can use `x test --test-args involved (mainly the compiler) haven't changed. You can use `x test --test-args
--force-rerun` to rerun a test even when none of the inputs have changed. --force-rerun` to rerun a test even when none of the inputs have changed.