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
  • Scout Monitoring

    Performance metrics and, now, Logs Management Monitoring with Scout Monitoring. Get early access to Scout Monitoring's NEW Ruby logging feature [beta] by signing up now. Start for free and enable logs to get better insights into your Rails apps.

    Scout Monitoring logo
  • 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.

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

    Project mention: Ruby VCR: Record test HTTP interactions and replay them | news.ycombinator.com | 2024-05-16
  • 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

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB 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: Is the VCR plugged in? Common Sense Troubleshooting For Web Devs | dev.to | 2024-07-10

    5. Automated Tests: Unit tests are automated tests that verify the behavior of a small unit of code in isolation. I like to write unit tests for every bug reported by a user. This way, I can reproduce the bug in a controlled environment and verify that the fix works as expected and that we wont see a regression. There are many different JavaScript test frameworks like Jest, cypress, mocha, and jasmine. We use Rspec and Minitest for unit and integration tests in our rails application.

  • 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: Base test profiling inside docker with test-prof | dev.to | 2024-05-30

    https://github.com/test-prof/test-prof Test-prof gem

  • 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

    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 discussion

Log in or Post with

Ruby Testing related posts

  • Stress Testing Your Rails Application Using JMeter

    2 projects | dev.to | 7 Jun 2024
  • Base test profiling inside docker with test-prof

    1 project | dev.to | 30 May 2024
  • Show HN: PBT – A property-based testing library for Ruby

    5 projects | news.ycombinator.com | 22 May 2024
  • A collection of different tools to analyze your Ruby test suite performance

    1 project | news.ycombinator.com | 21 May 2024
  • How I stopped RSpec from spiking to 2x runtime

    1 project | dev.to | 21 May 2024
  • Ruby VCR: Record test HTTP interactions and replay them

    1 project | news.ycombinator.com | 16 May 2024
  • Collecting JavaScript code coverage with Capybara in Ruby on Rails application

    6 projects | dev.to | 14 May 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 20 Sep 2024
    InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards. 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,228
2 Capybara 10,008
3 factory_bot 7,903
4 vcr 5,824
5 WebMock 3,957
6 shoulda-matchers 3,504
7 Parallel Tests 3,375
8 timecop 3,362
9 minitest 3,286
10 Database Cleaner 2,929
11 RSpec 2,862
12 inspec 2,850
13 Spring 2,803
14 mutant 1,944
15 test-kitchen 1,869
16 Ruby Tests Profiling Toolbox 1,865
17 DuckRails 1,720
18 ffaker 1,553
19 Watir 1,520
20 Spork 1,400
21 Appraisal 1,256
22 cuprite 1,235
23 mocha 1,217

Sponsored
Performance metrics and, now, Logs Management Monitoring with Scout Monitoring
Get early access to Scout Monitoring's NEW Ruby logging feature [beta] by signing up now. Start for free and enable logs to get better insights into your Rails apps.
www.scoutapm.com