radn-rs/coverage.sh
timofey c2304cc9d9
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.
remove branch coverage
(doesn't work)
2023-10-15 11:15:43 +00:00

10 lines
373 B
Bash
Executable File

export RUSTFLAGS="-Cinstrument-coverage"
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
rm -r ./target/debug/coverage/
grcov ./target/coverage/ -s . --binary-path ./target/cov/ -t html --ignore-not-existing -o ./target/debug/coverage/