You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/src/docs/running.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,9 +122,23 @@ skipped due to their presence in the default filter. For example:
122
122
123
123
### `--skip` and `--exact`
124
124
125
-
Nextest does not support `--skip` and `--exact` directly; instead, use a filterset which supersedes these options.
125
+
<!-- md:version 0.9.80 -->
126
126
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:
0 commit comments