segregate coverage
This commit is contained in:
parent
11a2738a53
commit
56e5eee07a
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,5 +2,4 @@
|
||||
/target
|
||||
/Cargo.lock
|
||||
**/*.rs.bk
|
||||
/prof
|
||||
*.profraw
|
||||
|
@ -1,7 +1,9 @@
|
||||
export RUSTFLAGS="-Cinstrument-coverage"
|
||||
export LLVM_PROFILE_FILE="prof/%p-%m.profraw"
|
||||
rm -r ./prof
|
||||
export LLVM_PROFILE_FILE="./target/coverage/%p-%m.profraw"
|
||||
export CARGO_TARGET_DIR="target/cov/"
|
||||
rm -r ./target/coverage/
|
||||
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/
|
||||
rm -r ./target/debug/coverage/
|
||||
grcov ./target/coverage/ -s . --binary-path ./target/cov/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/
|
||||
|
Loading…
Reference in New Issue
Block a user