Add Coveralls to a Rails 7 Project @StatelessCode
Add Coveralls to a Rails 7 Project  @StatelessCode
Uploaded October 2022 | Updated September 2026, 2 weeks ago
Coveralls is a website that provides reporting and visibility into code test coverage for a project repository. While code coverage in and of itself doesn't speak to the quality or relevance of software tests, it does provide visibility into places where you may have accidentally neglected to cover your code. It's free for open-source projects and provides transparency into your code coverage metrics for those who are evaluating whether to use or incorporate your open source project.

In this video, we adapt a previous implementation of Coveralls from our NerdDice RubyGem to our Rails 7 project. Instead of following the official documentation on the Coveralls website, we instead use the simplecov-lcov and coveralls_reborn gems.

Gotchas: Be sure to add the coverage/ folder to your .gitignore file. In this video, we make the mistake of neglecting to do so and show you how to recover from it.

This video covers:
00:00:12 Introduction and review solution from NerdDice RubyGem
00:03:21 Visit Coveralls site and add nerd_dice_dot_com repo
00:04:39 Install the required gems
00:05:55 Add coverage status badge into README
00:08:36 Add SimpleCov configuration to TestHelper
00:10:33 Uncomment and adapt code in main.yml of Github Action
00:12:40 Review the local SimpleCov report in a browser
00:14:17 Initial push of the changes, check on build, review on Coveralls
00:17:31 Restore sample tests from previous video and ensure it is working with Coveralls
00:25:03 Reset to the previous commit, add coverage/ to .gitignore and remove accidentally committed files from coverage folder from the commit with git rm --cached
00:32:26 Revew, pull request, close issue

#ruby #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #tailwind #postgresql #rubocop #githubactions

See other related StatelessCode videos:
- NerdDice RubyGem: Add Coveralls to Gem and Github Actions youtu.be/pztMKLIBFJ8

This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
Add Coveralls to a Rails 7 ProjectMediocre Karaoke - The Long and Winding Road by The BeatlesRails 8 Development with Dev Containers and rails-newReview a Pull Request from Our Devise Tailwind Video: Rails Helpers or Tailwind Directives?The Way of the Waveform - How I Trimmed 30 Minutes of Dead Air from a Coding Video with OpenShotInkscape 06: Rework the Stateless Code Logo and Make a Nerdy DieCodecast: Getting Started with Rails 7 22: Broadcast Comment Changes to the Article with Turbo300 Videos! 300 Badges!Create a RubyGem 96: Drop Official Support for End-of-Life Ruby 2.7Set up a Salesforce Development Environment on Ubuntu 24.04Why Do Your Own User Experience Research?Codecast: statelesscode.com WordPress 03: Install WP Test Dataset and Create Theme off of Sage 10
Stateless Code |

Add Coveralls to a Rails 7 Project

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER