10 lines
373 B
Bash
Executable File
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/
|