radn-rs/coverage.sh
timofey 11a2738a53
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.
clear profiling results
2023-10-15 10:44:37 +00:00

8 lines
273 B
Bash
Executable File

export RUSTFLAGS="-Cinstrument-coverage"
export LLVM_PROFILE_FILE="prof/%p-%m.profraw"
rm -r ./prof
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/