shoulda-matchers VS factory_bot_rails

Compare shoulda-matchers vs factory_bot_rails and see what are their differences.

shoulda-matchers

Simple one-liner tests for common Rails functionality (by thoughtbot)

factory_bot_rails

Factory Bot ♥ Rails (by thoughtbot)
Our great sponsors
  • PopRuby - Clothing and Accessories for Ruby Developers
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
shoulda-matchers factory_bot_rails
5 8
3,465 3,028
0.2% 0.9%
8.3 7.0
6 days ago 10 days ago
Ruby Gherkin
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.

shoulda-matchers

Posts with mentions or reviews of shoulda-matchers. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-20.

factory_bot_rails

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

What are some alternatives?

When comparing shoulda-matchers and factory_bot_rails you can also consider the following projects:

Capybara - Acceptance test framework for web applications

RSpec - RSpec meta-gem that depends on the other components

minitest - minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.

Pundit Matchers - A set of RSpec matchers for testing Pundit authorisation policies.

Cutest - Isolated tests in Ruby.

Cucumber - A home for issues that are common to multiple cucumber repositories

Aruba - Test command-line applications with Cucumber-Ruby, RSpec or Minitest.

Emoji-RSpec - Custom Emoji Formatters for RSpec

Spork - A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.

Fuubar - The instafailing RSpec progress bar formatter

rspec-tap-formatters - TAP Producer for RSpec-3

faker - A library for generating fake data such as names, addresses, and phone numbers. [Moved to: https://github.com/faker-ruby/faker]