mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
CONTRIBUTING: add manual testing section
This commit is contained in:
parent
cb23298eff
commit
58a94ea562
1 changed files with 13 additions and 0 deletions
|
@ -73,6 +73,19 @@ Of course there's little sense in writing the output yourself or copying it arou
|
|||
Therefore you can simply run `tests/ui/update-all-references.sh` and check whether
|
||||
the output looks as you expect with `git diff`. Commit all `*.stderr` files, too.
|
||||
|
||||
### Testing manually
|
||||
|
||||
Manually testing against an example file is useful if you have added some
|
||||
`println!`s and test suite output becomes unreadable. To try clippy with your
|
||||
local modifications, run `cargo run -- -L ./target/debug input.rs` from the
|
||||
working copy root. Your test file, here `input.rs`, needs to have clippy
|
||||
enabled as a plugin:
|
||||
|
||||
```rust
|
||||
#![feature(plugin)]
|
||||
#![plugin(clippy)]
|
||||
```
|
||||
|
||||
## Contributions
|
||||
|
||||
Clippy welcomes contributions from everyone.
|
||||
|
|
Loading…
Reference in a new issue