Improve code coverage accuracy

pull/14/head
Dominik Nakamura 3 years ago
parent e2d0d76469
commit 7c79c5b20b
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

@ -9,7 +9,7 @@ coverage:
rm -rf *.profraw ./target/debug/coverage lcov.info
RUSTFLAGS="-Zinstrument-coverage" LLVM_PROFILE_FILE="coverage-%p-%m.profraw" cargo +nightly test --all-features
RUSTFLAGS="-Zinstrument-coverage -Clink-dead-code" LLVM_PROFILE_FILE="coverage-%p-%m.profraw" cargo +nightly test --all-features
rustup run nightly grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage
rustup run nightly grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info

Loading…
Cancel
Save