Ruby Testing

Open-source Ruby projects categorized as Testing

Top 23 Ruby Testing Projects

  • faker

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

  • Project mention: Faker – generate fake data such as names, addresses, and phone numbers | news.ycombinator.com | 2024-04-13
  • Capybara

    Acceptance test framework for web applications

  • Project mention: Collecting JavaScript code coverage with Capybara in Ruby on Rails application | dev.to | 2024-05-14

    For example, there is a Ruby on Rails application that uses Webpacker and has JavaScript files that are covered by the system tests. Capybara is used as the system testing tool.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • factory_bot

    A library for setting up Ruby objects as test data.

  • Project mention: Show HN: Factory-JS – TypeScript dummy object generator for testing | news.ycombinator.com | 2024-03-29

    I made Factory-js inspired by factory-bot (https://github.com/thoughtbot/factory_bot), supports Prisma and Drizzle ORM and more. TypeScript is now widely used in both backend and frontend, but there is no de facto standard factory library. I'm developing a web application using Prisma, trpc, and nextjs, but I was struggling with how to write more beautiful and readable back-end tests. That's why I made factory-js.

  • vcr

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

  • WebMock

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

  • shoulda-matchers

    Simple one-liner tests for common Rails functionality

  • Project mention: How to Use Shoulda Matchers with RSpec for Ruby on Rails | dev.to | 2023-12-20

    According to the shoulda-matchers documentation:

  • Parallel Tests

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

  • SaaSHub

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

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

  • Project mention: About time: how to unit test code that depends on time | news.ycombinator.com | 2023-12-19

    The Ruby equivalent is Timecop

    https://github.com/travisjeffery/timecop

    Dynamic languages have the advantage to be able to rewrite the standard library classes at runtime.

  • minitest

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

  • Project mention: Test Driving a Rails API - Part Two | dev.to | 2024-03-21

    In this part, we’ll set up our testing environment so that we can test our Rails API using minitest with minitest/spec. We’ll look at the differences between traditional style unit tests and spec-style tests, or specs. I’ll demonstrate why you should use minitest-rails. We’ll look at using rack-test for testing our API. We’ll even create our own generator to generate API specs.

  • Database Cleaner

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

  • RSpec

    RSpec meta-gem that depends on the other components

  • inspec

    InSpec: Auditing and Testing Framework

  • Spring

    Rails application preloader (by rails)

  • Project mention: Spring: Rails Application Preloader | news.ycombinator.com | 2024-04-25
  • mutant

    Automated code reviews via mutation testing - semantic code coverage.

  • test-kitchen

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

  • Ruby Tests Profiling Toolbox

    Ruby Tests Profiling Toolbox

  • Project mention: Must-have gems for mature Rails | dev.to | 2024-02-02

    gem "test-prof" - https://github.com/test-prof/test-prof | Toolkit for inspecting and optimising your test-suite, a must-have.

  • DuckRails

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

  • ffaker

    Faker refactored.

  • Watir

    Watir Powered By Selenium

  • Spork

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

  • Appraisal

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

  • cuprite

    Headless Chrome/Chromium driver for Capybara

  • mocha

    Mocha is a mocking and stubbing library for Ruby (by freerange)

  • 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 related posts

  • Collecting JavaScript code coverage with Capybara in Ruby on Rails application

    6 projects | dev.to | 14 May 2024
  • Should You Use Ruby on Rails or Hanami?

    6 projects | dev.to | 8 May 2024
  • Spring: Rails Application Preloader

    1 project | news.ycombinator.com | 25 Apr 2024
  • Faker – generate fake data such as names, addresses, and phone numbers

    1 project | news.ycombinator.com | 13 Apr 2024
  • Show HN: Factory-JS – TypeScript dummy object generator for testing

    2 projects | news.ycombinator.com | 29 Mar 2024
  • Test Driving a Rails API - Part Two

    7 projects | dev.to | 21 Mar 2024
  • 16 Best Ruby Frameworks For Web Development [2024]

    6 projects | dev.to | 11 Mar 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 May 2024
    SaaSHub helps you find the best software and product alternatives 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,134
2 Capybara 9,969
3 factory_bot 7,880
4 vcr 5,751
5 WebMock 3,913
6 shoulda-matchers 3,474
7 Parallel Tests 3,343
8 timecop 3,335
9 minitest 3,247
10 Database Cleaner 2,914
11 RSpec 2,864
12 inspec 2,819
13 Spring 2,797
14 mutant 1,926
15 test-kitchen 1,858
16 Ruby Tests Profiling Toolbox 1,799
17 DuckRails 1,719
18 ffaker 1,544
19 Watir 1,508
20 Spork 1,400
21 Appraisal 1,232
22 cuprite 1,204
23 mocha 1,196

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com