diff options
Diffstat (limited to 'rust')
| -rwxr-xr-x | rust/cover.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/cover.sh b/rust/cover.sh new file mode 100755 index 0000000..c7befa6 --- /dev/null +++ b/rust/cover.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test +rm -fr target/coverage/html +grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html |
