segregate coverage
This commit is contained in:
parent
11a2738a53
commit
56e5eee07a
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,5 +2,4 @@
|
|||||||
/target
|
/target
|
||||||
/Cargo.lock
|
/Cargo.lock
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
/prof
|
|
||||||
*.profraw
|
*.profraw
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
export RUSTFLAGS="-Cinstrument-coverage"
|
export RUSTFLAGS="-Cinstrument-coverage"
|
||||||
export LLVM_PROFILE_FILE="prof/%p-%m.profraw"
|
export LLVM_PROFILE_FILE="./target/coverage/%p-%m.profraw"
|
||||||
rm -r ./prof
|
export CARGO_TARGET_DIR="target/cov/"
|
||||||
|
rm -r ./target/coverage/
|
||||||
cargo test
|
cargo test
|
||||||
cargo run --example trace
|
cargo run --example trace
|
||||||
cargo run --example trees
|
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