radn-rs/coverage.sh
timofey 6b7a5461ac
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.
coverage
2023-10-15 06:28:12 +00:00

7 lines
260 B
Bash
Executable File

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/