Skip to content

Commit

Permalink
Update extra-args.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers authored Dec 10, 2024
1 parent 70aed3d commit 363c83f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions site/src/docs/configuration/extra-args.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,21 @@ harnesses*](../design/custom-test-harnesses.md).
Extra arguments are typically defined via [per-test
settings](per-test-overrides.md).


To run all tests in the `gui-tests` package with the `--test-threads=1`
argument:
To run all tests in the `gui` package's `tests/custom-tests.rs` target
with the `--test-threads=1` argument:

```toml title="Extra arguments in <code>.config/nextest.toml</code>"
[[profile.default.overrides]]
filter = "package(gui-tests)"
filter = "binary_id(gui::custom-tests)"
run-extra-args = ["--test-threads=1"]
```

You can also define extra arguments that apply globally to all tests:
The `binary_id` predicate accepts names shown during `cargo nextest run`; see
[*Binary IDs*] for more.

[*Binary IDs*]: https://nexte.st/docs/running/#binary-ids

You can also define extra arguments that apply to all tests:

```toml
[profile.default]
Expand Down

0 comments on commit 363c83f

Please sign in to comment.