File tree Expand file tree Collapse file tree 4 files changed +6071
-0
lines changed Expand file tree Collapse file tree 4 files changed +6071
-0
lines changed Original file line number Diff line number Diff line change 1+ Copyright (c) 2020 Charlie Ozinga
2+ All rights reserved.
Original file line number Diff line number Diff line change 1+ # Rust Coverage Scripts
2+
3+ This is a simple set of scripts that makes it "easy" to generate
4+ coverage data for Rust unit tests, using
5+ [ grcov] ( ttps://github.com/mozilla/grcov ) . These scripts include:
6+
7+ - ` rustcov ` : The top-level script to run in your project directory.
8+ - ` genhtml ` : Stolen from lcov, this needs to be in your PATH when you
9+ run ` rustcov ` . MacOS brew users can use ` brew install lcov ` instead.
10+
11+ ## Requirements
12+
13+ In addition to rustup and cargo installed, you'll need to have the
14+ nightly toolchain and ` grcov ` installed.
15+
16+ ```
17+ rustup toolchain install nightly # for -Zprofile
18+ cargo install grcov
19+ ```
20+
21+ ## Troubleshooting
22+
23+ The ` rustcov ` script isn't that complex, so you should probably be able
24+ to figure out what's going on yourself if you run it manually
25+ step-by-step.
You can’t perform that action at this time.
0 commit comments