Skip to content

Commit a7af8bc

Browse files
committed
Fix SPEEDTEST instructions
1 parent 1e8fdf4 commit a7af8bc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

book/src/development/speedtest.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ accessed by the `SPEEDTEST` (and `SPEEDTEST_*`) environment variables.
99
To do a simple speed test of a lint (e.g. `allow_attributes`), use this command.
1010

1111
```sh
12-
$ SPEEDTEST=ui TESTNAME="allow_attributes" cargo uitest -- --nocapture
12+
$ SPEEDTEST=ui TESTNAME="allow_attributes" cargo uitest
1313
```
1414

1515
This will test all `ui` tests (`SPEEDTEST=ui`) whose names start with `allow_attributes`. By default, `SPEEDTEST` will
1616
iterate your test 1000 times. But you can change this with `SPEEDTEST_ITERATIONS`.
1717

1818
```sh
19-
$ SPEEDTEST=toml SPEEDTEST_ITERATIONS=100 TESTNAME="semicolon_block" cargo uitest -- --nocapture
19+
$ SPEEDTEST=toml SPEEDTEST_ITERATIONS=100 TESTNAME="semicolon_block" cargo uitest
2020
```
21-
22-
> **WARNING**: Be sure to use `-- --nocapture` at the end of the command to see the average test time. If you don't
23-
> use `-- --nocapture` (e.g. `SPEEDTEST=ui` `TESTNAME="let_underscore_untyped" cargo uitest -- --nocapture`), this
24-
> will not show up.

0 commit comments

Comments
 (0)