mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-08 12:07:52 -06:00
Add justfile for handling multiple coverage steps, prevent early termination of coverage job
This commit is contained in:
16
Justfile
Normal file
16
Justfile
Normal 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 }}"
|
||||||
10
bacon.toml
10
bacon.toml
@@ -36,7 +36,7 @@ analyzer = "nextest"
|
|||||||
|
|
||||||
[jobs.coverage]
|
[jobs.coverage]
|
||||||
command = [
|
command = [
|
||||||
"cargo", "llvm-cov", "--profile", "coverage", "--color", "always", "--no-fail-fast", "nextest", "--no-capture", "--summary-only", "--"
|
"just", "coverage"
|
||||||
]
|
]
|
||||||
need_stdout = true
|
need_stdout = true
|
||||||
ignored_lines = [
|
ignored_lines = [
|
||||||
@@ -49,8 +49,14 @@ ignored_lines = [
|
|||||||
"[─]+",
|
"[─]+",
|
||||||
"test.+ok",
|
"test.+ok",
|
||||||
"PASS|START",
|
"PASS|START",
|
||||||
"Starting \\d+ test"
|
"Starting \\d+ test",
|
||||||
|
"\\s*#",
|
||||||
|
"\\s*Finished.+in \\d+",
|
||||||
|
"\\s*Summary\\s+\\[",
|
||||||
|
"\\s*Blocking",
|
||||||
|
"Finished report saved to"
|
||||||
]
|
]
|
||||||
|
on_change_strategy = "wait_then_restart"
|
||||||
|
|
||||||
[jobs.doc]
|
[jobs.doc]
|
||||||
command = ["cargo", "doc", "--no-deps"]
|
command = ["cargo", "doc", "--no-deps"]
|
||||||
|
|||||||
Reference in New Issue
Block a user