Skip to content

✅ Ratchet up minimum test coverage requirements - #725

Merged
nevans merged 5 commits into
masterfrom
simplecov/raise-minimum-coverage
Jul 30, 2026
Merged

nevans merged 5 commits into
masterfrom
simplecov/raise-minimum-coverage

Conversation

@nevans

@nevans nevans commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Since simplecov v1.0 makes it easier to specify more detailed coverage requirements, I've raised the requirements to be just below the current coverage.

I've had some issues getting the coverage numbers in CI to match my numbers locally, which is concerning and annoying. But so long as the numbers in CI remain stable, we can use those as the baseline.

This also adds a simple custom formatter which is both faster than the HTML formatter and prints much more informative output to stderr.

The HTML formatter is still available via rake coverage:report.

@nevans
nevans force-pushed the simplecov/raise-minimum-coverage branch 5 times, most recently from ff804e7 to 5f56607 Compare July 30, 2026 14:57
@nevans
nevans force-pushed the simplecov/raise-minimum-coverage branch from 5f56607 to 54a68f9 Compare July 30, 2026 17:46
nevans added 2 commits July 30, 2026 17:33
It varies too much from one runtime environment to another.
Since simplecov v1.0 makes it easier to specify more detailed coverage
requirements, I've raised the requirements to be just below the current
coverage.

Hopefully, by excluding eval from branch coverage, those numbers will be
stable enough across builds that we can rely on them.
@nevans
nevans force-pushed the simplecov/raise-minimum-coverage branch 2 times, most recently from f91e34c to 0f48879 Compare July 30, 2026 21:40
The numbers are misleading when running individual tests.  And it takes
much longer to write than the simple `.resultset.json` does.

Note that SimpleCov::Formatter::SimpleFormatter doesn't even print its
own output to stderr!  So I've configured no formatter at all.

Use `rake test:coverage:report` to output the HTML and JSON coverage
data.
@nevans nevans changed the title ✅ Ratchet up the minimum coverage requirements ✅ Ratchet up minimum test coverage requirements Jul 30, 2026
@nevans
nevans merged commit f703c0c into master Jul 30, 2026
34 checks passed
@nevans
nevans deleted the simplecov/raise-minimum-coverage branch July 30, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant