feat(html-report): counts-first header + shared suite-sort comparator#135
Merged
Conversation
…parator Consistency sweep for the HTML report artifact, matching the patterns that landed for the CI summary (#125) and PR comment (#126): - Header H1 leads with counts-first metrics strip then pass rate, matching `## ${renderMetricsStrip} — ${passRate}%` in summary.ts. Drops "TestGlance Results" from H1 — already present in `<title>`. Duration + health score move to the metrics subline. - Suite breakdown now uses `compareSuitesByHealth` shared via format.ts, picking up the failed/skipped/duration tiebreakers (#129/#130) that this surface was missing. - `compareSuitesByHealth` extracted from summary.ts into format.ts so all three surfaces (summary breakdown, summary all-tests, html-report breakdown) share one source of truth.
Contributor
Contributor
🔬 TestGlancetest · ✅ 701 passed — 100.0%████████████████ 100.0%
vs
Updated 2026-05-30T18:29:05.655Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consistency sweep for the HTML report artifact, bringing it in line with the patterns that landed for the CI summary (#125) and PR comment (#126).
## ${renderMetricsStrip} — ${passRate}%insummary.ts. "TestGlance Results" comes out of the H1 — it's already in<title>. Duration and health score move to the metrics subline.compareSuitesByHealth, picking up the failed → skipped → duration tiebreakers from feat(summary): tiebreak suite breakdown on failed/skipped/duration #129 / refactor(summary): share suite-health comparator across both renderers #130 that this surface was missing.compareSuitesByHealthextracted fromsummary.tsintoformat.tsso all three surfaces (summary breakdown, summary all-tests, html-report breakdown) share one source of truth — no more drift between them.Before / after — H1
Out of scope
Check Run output (
check-run.ts) gets the same treatment in a follow-up PR.Test plan
pnpm test— 701/701 passing (added 2 inhtml-report.test.ts: H1 ordering, suite tiebreaker)pnpm typecheckcleanpnpm lintclean