File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -224,14 +224,19 @@ See also `--test`.
224
224
225
225
## ` --test-runtool ` , ` --test-runtool-arg ` : program to run tests with; args to pass to it
226
226
227
+ A doctest wrapper program can be specified with the ` --test-runtool ` flag.
228
+ Rustdoc will execute that wrapper instead of the doctest executable when
229
+ running tests. The first arguments to the wrapper will be any arguments
230
+ specified with the ` --test-runtool-arg ` flag, followed by the path to the
231
+ doctest executable to run.
232
+
227
233
Using these options looks like this:
228
234
229
235
``` bash
230
- $ rustdoc src/lib.rs --test-runtool runner --test-runtool-arg --do-thing --test-runtool-arg --do-other-thing
236
+ $ rustdoc src/lib.rs --test-runtool path/to/ runner --test-runtool-arg --do-thing --test-runtool-arg --do-other-thing
231
237
```
232
238
233
- These options can be used to run the doctest under a program, and also pass arguments to
234
- that program. For example, if you want to run your doctests under valgrind you might run
239
+ For example, if you want to run your doctests under valgrind you might run:
235
240
236
241
``` bash
237
242
$ rustdoc src/lib.rs --test-runtool valgrind
You can’t perform that action at this time.
0 commit comments