diff options
| author | Arnaud Bailly <arnaud.bailly@iohk.io> | 2024-10-10 18:37:19 +0200 |
|---|---|---|
| committer | Arnaud Bailly <arnaud.bailly@iohk.io> | 2024-10-10 18:37:19 +0200 |
| commit | 8094716f7c9a3d9f2886132e7419b377abb97b3b (patch) | |
| tree | ba7ba3a2fc9731b960e367f92e6b149fab8bc1da | |
| parent | 6c6528ae00bbbdce5571379bb2ad2118632d5dbf (diff) | |
| download | lambda-nantes-8094716f7c9a3d9f2886132e7419b377abb97b3b.tar.gz | |
Add simple script to compute rust coverage
| -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 |
