Skip to content

Commit 9f3b3b7

Browse files
authored
Merge pull request #1986 from koivunej/manualtesting-help
CONTRIBUTING: add manual testing section
2 parents ab00e96 + 58a94ea commit 9f3b3b7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ Of course there's little sense in writing the output yourself or copying it arou
7373
Therefore you can simply run `tests/ui/update-all-references.sh` and check whether
7474
the output looks as you expect with `git diff`. Commit all `*.stderr` files, too.
7575

76+
### Testing manually
77+
78+
Manually testing against an example file is useful if you have added some
79+
`println!`s and test suite output becomes unreadable. To try clippy with your
80+
local modifications, run `cargo run -- -L ./target/debug input.rs` from the
81+
working copy root. Your test file, here `input.rs`, needs to have clippy
82+
enabled as a plugin:
83+
84+
```rust
85+
#![feature(plugin)]
86+
#![plugin(clippy)]
87+
```
88+
7689
## Contributions
7790

7891
Clippy welcomes contributions from everyone.

0 commit comments

Comments
 (0)