Skip to content

Commit

Permalink
Adjusted for sh compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaeIotu committed Dec 15, 2024
1 parent 7963fb3 commit 90d33af
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tasks/test
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#!/bin/sh

rm -rf generated/coverage/data/* generated/coverage/html/*
export CARGO_INCREMENTAL=0
export RUSTFLAGS='-Cinstrument-coverage'
export LLVM_PROFILE_FILE='generated/coverage/data/cargo-test-%p-%m.profraw'

CARGO_INCREMENTAL=0
export CARGO_INCREMENTAL
RUSTFLAGS='-Cinstrument-coverage'
export RUSTFLAGS
LLVM_PROFILE_FILE='generated/coverage/data/cargo-test-%p-%m.profraw'
export LLVM_PROFILE_FILE

cargo test --no-fail-fast

grcov . --binary-path ./target/debug/deps/ -s . -t html \
--branch --ignore-not-existing --ignore '../*' --ignore "/*" \
--excl-line "grcov-excl-line|^$|#\[|mod |use |^\\W*\/\/|^\\W*\}" \
Expand Down

0 comments on commit 90d33af

Please sign in to comment.