diff --git a/rust/rti/run_unit_tests.sh b/rust/rti/run_unit_tests.sh new file mode 100755 index 0000000..3d762a7 --- /dev/null +++ b/rust/rti/run_unit_tests.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Prerequities +# 1. grcov <== cargo install grcov +# 2. llvm-tools-preview <== rustup component add llvm-tools-preview + +rm -rf cargo-test-* + +CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test + +grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage