cov: do not set LLVM_PROFILE_FILE

forcing a file name seems to make multi-binary tests overwrite each
other's profraw file

note old profraw files now need to be deleted before running, for
accurate representation of coverage regression
This commit is contained in:
xfnw 2023-03-23 19:54:47 -04:00
parent 001cffd700
commit d698e300bd
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
manifest="${1:-.}"
RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE="test.profraw" cargo test &&
RUSTFLAGS='-Cinstrument-coverage' cargo test &&
mkdir -p "$manifest/target/coverage/html" &&
~/.cargo/bin/grcov . --binary-path "$manifest/target/debug/deps/" -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o "$manifest/target/coverage/html"