Ruby Testing

Open-source Ruby projects categorized as Testing

Top 23 Ruby Testing Projects

  1. faker

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

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Capybara

    Acceptance test framework for web applications

    Project mention: Catch JS Errors with Playwright | dev.to | 2025-03-26

    Selenium has issues. I'm using it with Capybara and the latest encounter was a Net::ReadTimeout. I switched to Playwright following Justin Searls guide.

  4. factory_bot

    A library for setting up Ruby objects as test data.

    Project mention: A library for setting up Ruby objects as test data | news.ycombinator.com | 2025-05-03
  5. vcr

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

    Project mention: Build a Currency Exchange Service in Ruby on Rails | dev.to | 2024-12-18

    RSpec.describe CurrencyExchange do describe '.list' do it 'returns structured currency data' do VCR.use_cassette('currency_layer_list') do # https://github.com/vcr/vcr currencies = described_class.list expect(currencies).to all(be_a(described_class::GlobalCurrency)) end end it 'handles API failures gracefully' do allow(described_class).to receive(:get).and_return( double(success?: false) ) expect(described_class.list).to eq([]) end end end

  6. WebMock

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

  7. shoulda-matchers

    Simple one-liner tests for common Rails functionality

  8. Parallel Tests

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

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. 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 Time.now, Date.today, and DateTime.now in a single call.

  11. minitest

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

    Project mention: 30,656 Pages of Books About the .NET Ecosystem: C#, Blazor, ASP.NET, & T-SQL | dev.to | 2025-03-16

    I am very comfortable with Minitest in Ruby. When I started to learn Rails, though, I was surprised by how different RSpec was. In case .NET testing is equally unlike the xUnit style, I should learn the idioms.

  12. Database Cleaner

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

  13. inspec

    InSpec: Auditing and Testing Framework

  14. Spring

    Rails application preloader (by rails)

  15. mutant

    Automated code reviews via mutation testing - semantic code coverage.

  16. Ruby Tests Profiling Toolbox

    Ruby Tests Profiling Toolbox

  17. test-kitchen

    Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms

  18. DuckRails

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

  19. ffaker

    Faker refactored.

  20. Watir

    Watir Powered By Selenium

  21. Spork

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

  22. cuprite

    Headless Chrome/Chromium driver for Capybara

  23. Appraisal

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

  24. mocha

    A mocking and stubbing library for Ruby (by freerange)

  25. Machinist

    Fixtures aren't fun. Machinist is.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Ruby Testing discussion

Log in or Post with

Ruby Testing related posts

  • A library for setting up Ruby objects as test data

    1 project | news.ycombinator.com | 3 May 2025
  • Catch JS Errors with Playwright

    1 project | dev.to | 26 Mar 2025
  • 30,656 Pages of Books About the .NET Ecosystem: C#, Blazor, ASP.NET, & T-SQL

    6 projects | dev.to | 16 Mar 2025
  • Ruby "Thread Contention" Is Simply GVL Queuing

    2 projects | news.ycombinator.com | 4 Feb 2025
  • Show HN: Track Deprecation Warnings in Prod

    2 projects | news.ycombinator.com | 19 Dec 2024
  • Build a Currency Exchange Service in Ruby on Rails

    1 project | dev.to | 18 Dec 2024
  • MailCatcher runs a super simple SMTP server

    18 projects | news.ycombinator.com | 18 Nov 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 18 Jun 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

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

# Project Stars
1 faker 11,367
2 Capybara 10,094
3 factory_bot 8,042
4 vcr 5,933
5 WebMock 4,022
6 shoulda-matchers 3,552
7 Parallel Tests 3,435
8 timecop 3,400
9 minitest 3,332
10 Database Cleaner 2,950
11 inspec 2,924
12 Spring 2,814
13 mutant 1,976
14 Ruby Tests Profiling Toolbox 1,932
15 test-kitchen 1,880
16 DuckRails 1,720
17 ffaker 1,563
18 Watir 1,541
19 Spork 1,393
20 cuprite 1,305
21 Appraisal 1,297
22 mocha 1,253
23 Machinist 1,116

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Ruby is
the 12th most popular programming language
based on number of references?