Skip to content

Name merged coverage reports by suite instead of by run - #1340

Merged
mkarlesky merged 2 commits into
next_versionfrom
fix/coverage-report-footer
Oct 15, 2026
Merged

mkarlesky merged 2 commits into
next_versionfrom
fix/coverage-report-footer

Conversation

@mkarlesky

Copy link
Copy Markdown
Member

Summary

In the combined (and system) SimpleCov HTML report, the footer of each source file view buried the source. SimpleCov names a merged result with every merged run's own name, comma-joined. The system suite records one run per child process, so the combined report's name ran to about 25,000 characters across 714 runs. The single-page report prints that name in the source dialog's footer, which is laid out never to shrink.

coverage:report now names each merged report by the suites it merges, with the system suite's run count. The combined footer reads … using units, integration, system (714 runs). Coverage data and percentages are unchanged, and meta.command_name in each coverage.json shrinks the same way.

  • tools/coverage/report_label.rb: CoverageReportLabel builds the name.
  • rake coverage:specs: runs its specs, and the Linux CI job now runs that task.
  • .github/WORKFLOWS.md: documents the naming and the new task.

Testing

  • tools/coverage/spec/report_label_spec.rb: 5 examples, written failing first.
  • End to end: real units, integration, and system resultsets, then rake coverage:report. The reports are named units, integration, system (2 runs), and units, integration, system (2 runs).
  • rake specs:units and rake specs:integration: pass. Lint is clean.

🤖 Generated with Claude Code

mkarlesky and others added 2 commits October 14, 2026 22:49
A merged SimpleCov result is named with every merged run's own name,
and the system suite records one run per child process, hundreds in
all. The HTML report prints that name in the footer of each source
file view, where it buried the source. coverage:report now names each
report by its suites, with the system suite's run count, such as
'units, integration, system (714 runs)'. CoverageReportLabel builds the
name, with its own specs run in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mkarlesky
mkarlesky merged commit 9f15f76 into next_version Oct 15, 2026
22 checks passed
@mkarlesky
mkarlesky deleted the fix/coverage-report-footer branch October 15, 2026 12:46
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