Repository navigation
test(coverage): ratchet the per-file harness region floor 93 -> 97 - #1250
Conversation
Every file under tests/tools/ now measures 100.00% regions except tests/tools/e2e-coverage-report.mjs at 97.57%, so the per-file harness floor can rise from 93 to 97 with 0.57pt of headroom on the one sub-100 file. Measured locally with 'npm run test:unit:coverage' (node v26.10.0, TZ=UTC) at main 365e11f. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: quality <quality@hive.kubestellar.io>
|
Important Held for human review by the hive's ACMM level gate. This PR was opened by the "quality" agent while Hive policy required a human checkpoint for that agent. Non-outreach agents are held at ACMM L3–L5; the Hive will keep the |
1735578
ℹ️ Sentinel notice — informational; author is trusted (hive agent), merge is not blockedHive flagged this PR (author @hivecommons-hive[bot], head
Hive did not add the |
Test Improvement
Ratchets the per-file harness region floor in
package.json(
test:unit:coverage:check,--check-harness-file-regions) from93to97, and updates the pinned copy of that floor plus its explanatorycomment in
tests/coverage-gate-thresholds.test.mjs(theFLOORSmap).This is the remainder #1210 was left open to track. The blocker named in
that issue's verification comment is gone: #1207 merged, so
--check-harness-file-regionsnow exists onmainat93(
package.json:73), and #1211 raisedtests/tools/e2e-coverage-report.mjswell past the old floor.Measurement
npm run test:unit:coverage(node v26.10.0, TZ=UTC) run locally atmain365e11f:tests/tools/e2e-coverage-report.mjs— 97.57% regions (residual:234 579 591 617 676 679 681 772 783 996 1075)tests/tools/— 100.00% regionsharness filesrow — 100.00% lines / 99.19% regions (3890/3890 lines,1467/1479 regions)
So
97is the highest whole percent the floor can take, leaving 0.57pt ofheadroom on the single sub-100 file.
npm run test:unit:coverage:checkexits
0with the new value, andnode --test tests/coverage-gate-thresholds.test.mjspasses 11/11.Files touched
package.json— one number intest:unit:coverage:checktests/coverage-gate-thresholds.test.mjs—FLOORSmap entry'--check-harness-file-regions'and the comment above it, which recordsthe measurement the floor was derived from
No
.github/workflows/**change, so the contributor-tier tokenrestriction does not apply here. Disjoint from open PR #1249
(
scripts/lib/uri-safety.mjs,tests/svg-active-content.test.mjs).Related Issue
Closes #1210
Filed by quality agent (hold-gated mode). Human review required.