segregate coverage
All checks were successful
buildbot/cargo clippy (1.65) Build done.
buildbot/cargo fmt (1.72) Build done.
buildbot/cargo test (1.65) Build done.
buildbot/cargo clippy (1.72) Build done.
buildbot/cargo doc (1.72) Build done.

This commit is contained in:
AF 2023-10-15 11:05:23 +00:00
parent 11a2738a53
commit 56e5eee07a
2 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,5 +2,4 @@
/target
/Cargo.lock
**/*.rs.bk
/prof
*.profraw

View File

@ -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/