• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

statelesscode / nerd_dice_dot_com / 14765851430
72%
main: 72%

Build:
Build:
LAST BUILD BRANCH: feature/upgrade-rails-8
DEFAULT BRANCH: main
Ran 30 Apr 2025 10:51PM UTC
Jobs 1
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Apr 2025 10:33PM UTC coverage: 72.222% (+1.1%) from 71.154%
14765851430

push

github

msducheminjr
Fix inaccurate reporting on SimpleCov

Per SimpleCov issue simplecov-ruby/simplecov#1082, the change from Rails
7.0 to 7.1 where the `rails test` command now runs the `test:prepare`
task. This caused the reporting of code coverage by SimpleCov to be
distorted because SimpleCov must be required and started before the
Rails application code is required. Combining the `test:prepare` command
causes the application code to be required before the test_helper code,
thereby breaking how the app previously measured coverage.

Solved by moving the SimpleCov require and start code into boot.rb but
only when ENV['CI'] or ENV['COVERAGE'] are present.

See also:
- `4.9. bin/rails test now runs test:prepare task` on Rails upgrading
  guide: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html

Completes sub-task Fix code coverage issue caused by Rails 7.1 upgrade
for issue Upgrade to Rails 8 and current versions of Gems #51

39 of 54 relevant lines covered (72.22%)

40.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run- - 14765851430.1 30 Apr 2025 10:51PM UTC 16
72.22
GitHub Action Run
Source Files on build 14765851430
  • Tree
  • List 16
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a7da1705 on github
  • Prev Build on feature/upgrade-rails-8 (#14720593964)
  • Next Build on feature/upgrade-rails-8 (#14805200965)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc