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: 16 Best Ruby Frameworks For Web Development [2024] | dev.to | 2024-03-11

    Cuba takes help from a lot of other technologies to bring the best of everything. For example, the responses in Cuba are the optimized version of the Rack responses. The templates are integrated via Tilt and testing via Cutest and Capybara.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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

  • Project mention: CableReady broadcasts are not working in system tests | /r/rails | 2023-05-10

    If you want to check out an alternative to VCR, have a look at webmock.

  • 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

    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
  • 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: Could not detect rake tasks | /r/rails | 2023-05-03

    # Use the Puma web server [https://github.com/puma/puma] gem "puma", "~> 5.0" # Build JSON APIs with ease [https://github.com/rails/jbuilder] # gem "jbuilder" gem 'rack-cors' gem "devise" gem "jsonapi-serializer" gem 'devise-jwt' gem 'active_model_serializers' gem 'followability' gem 'dotenv-rails', groups: [:development, :test, :production] gem 'sprockets' # Use Redis adapter to run Action Cable in production # gem "redis", "~> 4.0" # Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] # gem "kredis" # Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] # gem "bcrypt", "~> 3.1.7" # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] # Reduces boot times through caching; required in config/boot.rb gem "bootsnap", require: false # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] # gem "image_processing", "~> 1.2" # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem "rack-cors" group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "debug", platforms: %i[ mri mingw x64_mingw ] end group :development do gem "sqlite3", "~> 1.4" # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" end group :production do gem 'pg' end

  • 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). The latest post mention was on 2024-04-13.

Ruby Testing related posts

Index

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

Project Stars
1 faker 11,091
2 Capybara 9,960
3 factory_bot 7,875
4 vcr 5,747
5 WebMock 3,908
6 shoulda-matchers 3,468
7 Parallel Tests 3,339
8 timecop 3,333
9 minitest 3,243
10 Database Cleaner 2,914
11 RSpec 2,867
12 inspec 2,810
13 Spring 2,786
14 mutant 1,921
15 test-kitchen 1,855
16 Ruby Tests Profiling Toolbox 1,790
17 DuckRails 1,720
18 ffaker 1,544
19 Watir 1,505
20 Spork 1,400
21 Appraisal 1,229
22 cuprite 1,194
23 mocha 1,192

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