Skip to content

Commit 44e9ef4

Browse files
committed
[site] add --skip and --exact docs
1 parent 19c03ce commit 44e9ef4

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

site/src/docs/running.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,23 @@ skipped due to their presence in the default filter. For example:
122122

123123
### `--skip` and `--exact`
124124

125-
Nextest does not support `--skip` and `--exact` directly; instead, use a filterset which supersedes these options.
125+
<!-- md:version 0.9.80 -->
126126

127-
Here are some examples:
127+
Nextest accepts the `--skip` and `--exact` arguments after `--`, emulating the corresponding arguments accepted by `cargo test`. These arguments match test names.
128+
129+
For example, to run all tests matching the substring `test3`, but not including `skip1` or `skip2`:
130+
131+
```
132+
cargo nextest run -- --skip skip1 --skip skip2 test3
133+
```
134+
135+
To run all tests matching either exactly `test1` or the substring `test2`:
136+
137+
```
138+
cargo nextest run -- --exact test1 test2
139+
```
140+
141+
Alternatively, and in prior versions of nextest, use a [filterset](filtersets/index.md). Some examples:
128142

129143
| Cargo test command | Nextest command |
130144
| :---------------------------------------------: | :-----------------------------------------------------: |

0 commit comments

Comments
 (0)