Add a code coverage check to the CI pipeline #84

Merged
wojtek merged 5 commits from 83---add-a-code-coverage-check-to-the-ci-pipeline into main 2024-01-06 19:49:41 +01:00
Showing only changes of commit 5614803938 - Show all commits

View File

@ -23,6 +23,7 @@ env CARGO_TARGET_DIR=codecov \
env RUSTFLAGS="-C instrument-coverage" \
LLVM_PROFILE_FILE="codecov/debug/profraw/musichoard-%p-%m.profraw" \
CARGO_TARGET_DIR=codecov \
BEETSDIR=./ \
cargo test --all-features --all-targets
grcov codecov/debug/profraw \
--binary-path ./codecov/debug/ \
@ -31,7 +32,7 @@ grcov codecov/debug/profraw \
--ignore-not-existing \
--ignore "tests/*" \
--ignore "src/main.rs" \
--excl-start "mod tests \{|GRCOV_EXCL_START" \
--excl-start "GRCOV_EXCL_START|mod tests \{" \
--excl-stop "GRCOV_EXCL_STOP" \
--output-path ./codecov/debug/coverage/
xdg-open codecov/debug/coverage/index.html