SimpleCov VS rspec-rails

Compare SimpleCov vs rspec-rails and see what are their differences.

SimpleCov

Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites (by simplecov-ruby)
Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Scout APM - Truly a developer’s best friend
  • talent.io - Download talent.io’s Tech Salary Report
SimpleCov rspec-rails
6 9
4,511 4,856
0.3% 0.4%
4.1 8.6
about 1 month ago 3 days ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

SimpleCov

Posts with mentions or reviews of SimpleCov. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-01.

rspec-rails

Posts with mentions or reviews of rspec-rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-17.
  • Request Spec Realistic Error Response
    2 projects | dev.to | 17 Jul 2022
    I didn't figure out how to resolve this on my own. I only came across a solution by searching for others' approaches. I found this issue in rspec-rails's issue tracker. In there Michael Gee shares a workaround. The earliest reference to this approach that I can find is from Eliot Sykes in 2017. If you're aware of an earlier reference to this, let me know!
  • Who's using Rails 7 test
    2 projects | reddit.com/r/rails | 18 Jun 2022
    The rspec-rails gem falls back to rails' minitest code to do some things and there are some bugs with lifecycle hooks for example, check here https://github.com/rspec/rspec-rails/issues/2526 and https://github.com/rspec/rspec-rails/issues/2550 that needs workarounds, because rspec tests don't have the exact same lifecycle than minitest tests.
  • Bootstrapping with Ruby on Rails Generators and Templates
    6 projects | dev.to | 11 May 2022
    Optionally install and set up Rspec.
  • The Perils of Parallel Testing in Ruby on Rails
    2 projects | dev.to | 30 Mar 2022
    Let's get one thing out of the way. If you use RSpec rather than Minitest, you are out of luck. RSpec does not support Rails 6 built-in parallel testing. There is an ongoing discussion about changing that, but there hasn't been any significant progress for a while. If you want parallel tests with RSpec, your best bet is still using third-party gems such as grosser/parallel_tests.
  • 10 things I add to every Rails app
    9 projects | dev.to | 2 Oct 2021
    For testing I use RSpec, along with shoulda-matchers for easily testing model relations & validations.
  • Como configurar ambiente de testes em Ruby on Rails com RSpec
    7 projects | dev.to | 21 Apr 2021

What are some alternatives?

When comparing SimpleCov and rspec-rails you can also consider the following projects:

Coverband - Ruby production code coverage collection and reporting (line of code usage)

Rubocop - A Ruby static code analyzer and formatter, based on the community Ruby style guide. [Moved to: https://github.com/rubocop/rubocop]

Rubycritic - A Ruby code quality reporter

Pronto - Quick automated code review of your changes

undercover - Actionable code coverage - detects untested code blocks in recent changes

rails_best_practices - a code metric tool for rails projects

Pippi - pippi

ruby - The Ruby Programming Language [mirror]

Rack::Attack - Rack middleware for blocking & throttling

Flog - Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.

Scientist - :microscope: A Ruby library for carefully refactoring critical paths.

Reek - Code smell detector for Ruby