Skip to content

Commit

Permalink
Update coverage gen script
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyulong committed Nov 21, 2024
1 parent 2f8d281 commit 4f20a52
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion run-code-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
set -x
set -e

CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --features compile-blueprints-at-build-time --no-fail-fast
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --no-fail-fast \
--package radix-engine-tests \
--package radix-transactions \
--package radix-transaction-scenarios \
--package radix-common \
--package sbor \
--package sbor-tests

grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html --excl-br-start "^declare_native_blueprint_state" --excl-start "^declare_native_blueprint_state" --excl-br-stop "^}$" --excl-stop "^}$"

0 comments on commit 4f20a52

Please sign in to comment.