Repository navigation
✅ Ratchet up minimum test coverage requirements - #725
Merged
Merged
Conversation
nevans
force-pushed
the
simplecov/raise-minimum-coverage
branch
5 times, most recently
from
July 30, 2026 14:57
ff804e7 to
5f56607
Compare
The stats bounce around too much from version to version.
nevans
force-pushed
the
simplecov/raise-minimum-coverage
branch
from
July 30, 2026 17:46
5f56607 to
54a68f9
Compare
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
force-pushed
the
simplecov/raise-minimum-coverage
branch
2 times, most recently
from
July 30, 2026 21:40
f91e34c to
0f48879
Compare
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.
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.
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.