Skip to content

Commit 2e81648

Browse files
committed
Initial commit
0 parents  commit 2e81648

File tree

4 files changed

+6071
-0
lines changed

4 files changed

+6071
-0
lines changed

LICENSE.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Copyright (c) 2020 Charlie Ozinga
2+
All rights reserved.

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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.

0 commit comments

Comments
 (0)