Add justfile for handling multiple coverage steps, prevent early termination of coverage job

This commit is contained in:
2025-08-12 17:04:28 -05:00
parent 780a33f657
commit be5eec64c9
2 changed files with 24 additions and 2 deletions

16
Justfile Normal file
View File

@@ -0,0 +1,16 @@
set shell := ["bash", "-c"]
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
coverage_exclude_pattern := "app.rs|audio.rs"
coverage:
# Run & generate report
cargo llvm-cov \
--ignore-filename-regex "{{ coverage_exclude_pattern }}" \
--output-path lcov.info \
--profile coverage \
--no-fail-fast nextest
# Display report
cargo llvm-cov report \
--ignore-filename-regex "{{ coverage_exclude_pattern }}"