Ruby Testing

Open-source Ruby projects categorized as Testing

Top 23 Ruby Testing Projects

  • GitHub repo Capybara

    Acceptance test framework for web applications

  • GitHub repo faker

    A library for generating fake data such as names, addresses, and phone numbers. (by faker-ruby)

    Project mention: Item database for personal site | | 2021-03-10

    Do you want data to populate a testsite? If so things like Faker can help. It'll still take some stuffing around but is ultimately quicker than manually creating rows most the time.

  • GitHub repo factory_bot

    A library for setting up Ruby objects as test data.

    Project mention: Learn what is DSL and build your own parser for Gemfile | | 2021-04-08

    For anyone wanting to dive even deeper into the topic of writing DSLs, this thoughtbot post does a pretty good job of explaining how the DSL for factorybot works

  • GitHub repo vcr

    Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.

  • GitHub repo WebMock

    Library for stubbing and setting expectations on HTTP requests in Ruby.

  • GitHub repo timecop

    A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock,, and in a single call.

    Project mention: Travel in time in development/staing/... in your Rails app | | 2021-01-18

    I believe you already familiar with the gem which is very useful for testing.

  • GitHub repo shoulda-matchers

    Simple one-liner tests for common Rails functionality

    Project mention: Top 5 Best Testing Ruby Gems For Building Ruby on Rails Web Application | | 2020-09-09

    4. Shoulda-matchers

  • GitHub repo Parallel Tests

    Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber

  • GitHub repo minitest

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

    Project mention: Best way to learn testing in RSpec? | | 2021-03-31

    Then try minitest (unit and spec verisons)

  • GitHub repo RSpec

    RSpec meta-gem that depends on the other components

    Project mention: Building Jekyll-Twitch, the gem | | 2021-04-01

    RSpec This is my favorite testing gem. I love how readable and well-organized the tests are.

  • GitHub repo Database Cleaner

    Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.

  • GitHub repo Spring

    Rails application preloader (by rails)

  • GitHub repo inspec

    InSpec: Auditing and Testing Framework

  • GitHub repo mutant

    Automated code reviews via mutation testing - semantic code coverage.

  • GitHub repo DuckRails

    Development tool to mock API endpoints quickly and easily (docker image available)

  • GitHub repo ffaker

    Faker refactored.

  • GitHub repo Spork

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

  • GitHub repo Watir

    Watir Powered By Selenium

  • GitHub repo Ruby Tests Profiling Toolbox

    Ruby Tests Profiling Toolbox

  • GitHub repo Machinist

    Fixtures aren't fun. Machinist is.

  • GitHub repo Appraisal

    A Ruby library for testing your library against different versions of dependencies.

    Project mention: Researcher hacks over 35 tech firms in novel supply chain attack | | 2021-02-10


  • GitHub repo Konacha

    Test your Rails application's JavaScript with the mocha test framework and chai assertion library

  • GitHub repo Aruba

    Test command-line applications with Cucumber-Ruby, RSpec or Minitest. The most up to date documentation can be found on Cucumber.Pro (

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-04-08.


What are some of the best open-source Testing projects in Ruby? This list will help you:

Project Stars
1 Capybara 9,351
2 faker 9,234
3 factory_bot 7,158
4 vcr 5,044
5 WebMock 3,504
6 timecop 3,046
7 shoulda-matchers 3,032
8 Parallel Tests 2,961
9 minitest 2,894
10 RSpec 2,778
11 Database Cleaner 2,694
12 Spring 2,653
13 inspec 2,306
14 mutant 1,708
15 DuckRails 1,682
16 ffaker 1,428
17 Spork 1,402
18 Watir 1,389
19 Ruby Tests Profiling Toolbox 1,220
20 Machinist 1,129
21 Appraisal 1,075
22 Konacha 1,067
23 Aruba 902