Skip to content

Migrate .simplecov to SimpleCov 1.x API - #3676

Merged
wadealcorn merged 1 commit into
masterfrom
simplecov-1x-api
Oct 16, 2026
Merged

wadealcorn merged 1 commit into
masterfrom
simplecov-1x-api

Conversation

@wadealcorn

Copy link
Copy Markdown
Collaborator

What

Migrate .simplecov to the SimpleCov 1.x API.

SimpleCov 1.x deprecated three configuration methods in favour of shorter equivalents with identical arguments and behavior:

Old (0.x) New (1.x)
add_filter skip
add_group group
track_files cover

The project moved to simplecov ~> 1.3 recently, so the current .simplecov emits deprecation warnings on every coverage run and will break once the compatibility shims are removed in a future SimpleCov release.

Change

.simplecov only — a 1:1 rename of the three deprecated calls. No behavior change: the same filters, the same Core / Extensions / Modules groups, and the same per-component COVERAGE= tracking.

Verification

  • Full RSpec suite passes with the change (0 failures).
  • Coverage report still generates, with the three groups intact.
  • No add_filter / add_group / track_files deprecation warnings remain.

SimpleCov 1.x deprecates add_filter, add_group and track_files in favour
of skip, group and cover (same arguments, same behavior). Update the
.simplecov config to the new API so coverage runs without deprecation
warnings and stays compatible with future SimpleCov releases.
@wadealcorn
wadealcorn merged commit f0a1429 into master Oct 16, 2026
7 checks passed
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