coverage
This commit is contained in:
parent
03a4556138
commit
6b7a5461ac
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
|||||||
/target
|
/target
|
||||||
/Cargo.lock
|
/Cargo.lock
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
/prof
|
||||||
|
*.profraw
|
||||||
|
17
README.md
Normal file
17
README.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# RADN
|
||||||
|
|
||||||
|
## Coverage
|
||||||
|
|
||||||
|
```sh
|
||||||
|
rustup component add llvm-tools
|
||||||
|
cargo install grcov
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
export RUSTFLAGS="-Cinstrument-coverage"
|
||||||
|
export LLVM_PROFILE_FILE="prof/%p-%m.profraw"
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./coverage.sh
|
||||||
|
```
|
6
coverage.sh
Executable file
6
coverage.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
export RUSTFLAGS="-Cinstrument-coverage"
|
||||||
|
export LLVM_PROFILE_FILE="prof/%p-%m.profraw"
|
||||||
|
cargo test
|
||||||
|
cargo run --example trace
|
||||||
|
cargo run --example trees
|
||||||
|
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/
|
Loading…
Reference in New Issue
Block a user