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:
parent
001cffd700
commit
d698e300bd
2
bin/cov
2
bin/cov
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue