Commit 5f0bb84
opt no-coverage crates out of the coverage gate
cargo-coverage-gate maps any gated package that produces NO coverage data to
Verdict::ConfigError (exit 2) unless it is explicitly opted out via
`min-lines-percent = 0`. automation (script-only, entirely coverage(off)),
fundle (macro re-exports + marker structs + trait defs, no executable bodies),
and testing_aids (whole crate coverage(off)) all legitimately produce no data,
so the full-workspace gate failed even though every measured package passed.
Add `[package.metadata.coverage-gate] min-lines-percent = 0` to the three so
the gate treats their NO DATA as OK. This is also the marker anvil-llvm-cov's
impact-scoping uses to drop opted-out packages from the measured set.
With this, `cargo coverage-gate` over the per-config lcovs reports "all packages
meet their threshold" (exit 0).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 531f6d4 commit 5f0bb84
3 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
0 commit comments