CONTRIBUTING: clarify how to regenerate ui test output

This commit is contained in:
Georg Brandl
2017-11-18 16:11:07 +01:00
parent 296edda3a9
commit 3d26c7bb7f

View File

@@ -70,8 +70,9 @@ Please document your lint with a doc comment akin to the following:
Clippy uses UI tests. UI tests check that the output of the compiler is exactly as expected. Clippy uses UI tests. UI tests check that the output of the compiler is exactly as expected.
Of course there's little sense in writing the output yourself or copying it around. Of course there's little sense in writing the output yourself or copying it around.
Therefore you can simply run `tests/ui/update-all-references.sh` and check whether Therefore you can simply run `tests/ui/update-all-references.sh` (after running
the output looks as you expect with `git diff`. Commit all `*.stderr` files, too. `cargo test`) and check whether the output looks as you expect with `git diff`. Commit all
`*.stderr` files, too.
### Testing manually ### Testing manually