Skip to content

Commit

Permalink
add script for running tests with coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
decathorpe committed Jul 5, 2023
1 parent 9e4c169 commit 6ed11a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/bash

set -e

export RUSTFLAGS="-Cinstrument-coverage"
cargo build --workspace --all-features
export LLVM_PROFILE_FILE="dxr-%p-%m.profraw"
cargo test --workspace --all-features
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/
rm **/*.profraw

0 comments on commit 6ed11a5

Please sign in to comment.