Skip to content

fix(report): the console summary counted the wrong skips - #43

Merged
BitHighlander merged 1 commit into
masterfrom
fix/report-count-reconcile
Aug 21, 2026
Merged

fix(report): the console summary counted the wrong skips#43
BitHighlander merged 1 commit into
masterfrom
fix/report-count-reconcile

Conversation

@BitHighlander

Copy link
Copy Markdown
Owner

render() computes the catalog's own skip count, then the scope paragraph rebound the same name to the run-wide census:

skipped = sum(... for t in s[5] if _lookup(...) == 'skip')   # catalog
...
skipped = JUNIT_CENSUS['skipped']                            # whole run

So the line CI operators actually read —

N sections, 374 tests (323 passed, 0 failed, 3 skipped, 48 pending)

— printed the whole run's skips inside a breakdown of the catalog. The four numbers did not add up to the total, and the error ran in the alarming direction: it inflates skips, which reads as "lots of this was not exercised" against a catalog where only three entries were actually gated.

Uses the census value inline where the paragraph needs it, so skipped means one thing. Plus the assertion that would have caught it, since the breakdown is only ever right when it reconciles:

assert passed + failed + skipped + missing == total

render() computes the catalog's own skip count, then the scope paragraph
rebound the same name to the run-wide census:

    skipped = sum(... for t in s[5] if _lookup(...) == 'skip')   # catalog
    ...
    skipped = JUNIT_CENSUS['skipped']                            # whole run

so the line CI operators actually read --

    N sections, 374 tests (323 passed, 0 failed, 3 skipped, 48 pending)

printed the whole run's skips inside a breakdown of the catalog. The four
numbers did not add up to the total, and the error ran in the alarming
direction: it inflates skips, which reads as "lots of this was not exercised"
against a catalog where only three entries were actually gated.

Use the census value inline where the paragraph needs it and leave `skipped`
meaning one thing.

Added the assertion that would have caught it, since the breakdown is only
ever right when it reconciles:

    assert passed + failed + skipped + missing == total

Now: 374 tests (323 passed, 0 failed, 3 skipped, 48 pending) -> 374.
@BitHighlander
BitHighlander merged commit 099a830 into master Aug 21, 2026
2 of 4 checks passed
@BitHighlander
BitHighlander deleted the fix/report-count-reconcile branch August 21, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant