summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud.bailly@iohk.io>2024-10-10 18:37:19 +0200
committerArnaud Bailly <arnaud.bailly@iohk.io>2024-10-10 18:37:19 +0200
commit8094716f7c9a3d9f2886132e7419b377abb97b3b (patch)
treeba7ba3a2fc9731b960e367f92e6b149fab8bc1da
parent6c6528ae00bbbdce5571379bb2ad2118632d5dbf (diff)
downloadlambda-nantes-8094716f7c9a3d9f2886132e7419b377abb97b3b.tar.gz
Add simple script to compute rust coverage
-rwxr-xr-xrust/cover.sh4
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