Skip to content

Add support for SimpleCov 1.0 - #196

Merged
mateusdeap merged 2 commits into
mainfrom
update-simplecov
Jul 31, 2026
Merged

Add support for SimpleCov 1.0#196
mateusdeap merged 2 commits into
mainfrom
update-simplecov

Conversation

@mateusdeap

@mateusdeap mateusdeap commented Jul 28, 2026

Copy link
Copy Markdown
Member

Description

Adds support for simplecov 1.0 in development

Motivation and Context

Simplecov recently released it's 1.0.0 version and we want to make next_rails supports it.

How Has This Been Tested?

I simply ran all the specs and they all passed and a report was generated successfully.

I will abide by the code of conduct

@mateusdeap
mateusdeap requested review from etagwerker and removed request for etagwerker July 28, 2026 12:55
@mateusdeap
mateusdeap requested a review from etagwerker July 28, 2026 13:04
@mateusdeap mateusdeap changed the title Update simplecov requirement to ~> 1.0.0 Add support for SimpleCov 1.0 Jul 28, 2026

@JuanVqz JuanVqz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

For reference, here is what each CI job actually resolves to today, given the open-ended >= 0.17.1 floor:

CI Ruby simplecov resolved
4.0, 3.4, 3.3, 3.2 1.0.x (needs Ruby >= 3.2)
3.1, 3.0, 2.7, 2.6, 2.5 0.22.x
2.4 0.18.x
2.3 0.17.1

Comment thread next_rails.gemspec
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "simplecov", "~> 0.17.1"
spec.add_development_dependency "simplecov", ">= 0.17.1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding this or even being more strict?

Suggested change
spec.add_development_dependency "simplecov", ">= 0.17.1"
spec.add_development_dependency "simplecov", ">= 0.17.1", "< 2"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not actionable on our end, but v1 also deprecated the track_files in favor of cover just in case at some point we are required to switch to it, we can continue using track_files for our legacy Ruby's with:

 SimpleCov.respond_to?(:cover) ? SimpleCov.cover("lib/**/*.rb") : SimpleCov.track_files("lib/**/*.rb")

@JuanVqz

JuanVqz commented Jul 29, 2026

Copy link
Copy Markdown
Member

@mateusdeap, do we need a second pair of 👀, or are you good to merge?

@mateusdeap

Copy link
Copy Markdown
Member Author

@JuanVqz Good to merge

@mateusdeap
mateusdeap merged commit d77883d into main Jul 31, 2026
11 checks passed
@mateusdeap
mateusdeap deleted the update-simplecov branch July 31, 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.

2 participants