Ruby Testing

Open-source Ruby projects categorized as Testing | Edit details

Top 23 Ruby Testing Projects

  • GitHub repo faker

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

    Project mention: Faker: Ruby library for generating fake data | news.ycombinator.com | 2021-11-22
  • GitHub repo Capybara

    Acceptance test framework for web applications

    Project mention: The Benefits of Acceptance Testing | dev.to | 2021-11-18

    For instance, the acceptance test above requires a log in routine. Here's where the expressive power of a DSL like Capybara manifests:

  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • GitHub repo factory_bot

    A library for setting up Ruby objects as test data.

    Project mention: It really be like that though | reddit.com/r/ProgrammerHumor | 2021-11-06

    Here is an example from Factory Bot itself, which includes embedded Ruby (in this case):

  • GitHub repo vcr

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

    Project mention: Usando VCR para simular requisições | dev.to | 2021-11-26
  • GitHub repo WebMock

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

    Project mention: A Ruby gem to create production grade Kubernetes clusters in Hetzner Cloud in a couple of minutes or less | reddit.com/r/rails | 2021-08-07

    The other option is to mock the web requests to Hetzner - this: https://github.com/bblimke/webmock or similar may help.

  • GitHub repo shoulda-matchers

    Simple one-liner tests for common Rails functionality

    Project mention: Como configurar ambiente de testes em Ruby on Rails com RSpec | dev.to | 2021-04-21
  • 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 Time.now, Date.today, and DateTime.now in a single call.

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

    I believe you already familiar with the gem https://github.com/travisjeffery/timecop which is very useful for testing.

  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • 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: 49 Days of Ruby: Day 46 -- Testing Frameworks: Minitest | dev.to | 2021-05-11

    Those are just a few examples of what you can do with Minitest! Check out their README on GitHub and keep on exploring.

  • GitHub repo RSpec

    RSpec meta-gem that depends on the other components

    Project mention: 10 Awesome Ruby Gems for Ruby on Rails Web Development | dev.to | 2021-08-21

    RSpec

  • GitHub repo Database Cleaner

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

    Project mention: How a big application is usually tested regarding to its database data persistence? Also, tip on starting tests on existing codebase. | reddit.com/r/rails | 2021-09-30

    i'll introduce the gem https://github.com/DatabaseCleaner/database_cleaner.

  • GitHub repo Spring

    Rails application preloader (by rails)

    Project mention: RSpec with FactoryBot keeps increasing ID in the database | reddit.com/r/rails | 2021-07-27

    # frozen_string_literal: true source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '3.0.0' gem 'devise-jwt', '~> 0.8.1' gem 'dotenv-rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' gem 'rails', '~> 6.1.4' # Use sqlite3 as the database for Active Record # gem 'sqlite3', '~> 1.4' gem 'pg' # Use Puma as the app server gem 'puma', '~> 5.0' gem 'rack-cors' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder # gem 'jbuilder', '~> 2.7' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use Active Model has_secure_password gem 'bcrypt', '~> 3.1.7' # Use Active Storage variant # gem 'image_processing', '~> 1.2' # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', '>= 1.4.4', require: false # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem 'rack-cors' group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: %i[mri mingw x64_mingw] gem 'rspec-rails', '~> 5.0.0' gem 'factory_bot_rails' end group :development do gem 'listen', '~> 3.3' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

  • GitHub repo inspec

    InSpec: Auditing and Testing Framework

    Project mention: Checking compliance of controls? Job help | reddit.com/r/cybersecurity | 2021-09-17
  • GitHub repo mutant

    Automated code reviews via mutation testing - semantic code coverage.

    Project mention: Mutant – Automated code reviews via mutation testing – semantic code coverage | news.ycombinator.com | 2021-09-08
  • GitHub repo DuckRails

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

  • GitHub repo ffaker

    Faker refactored.

  • GitHub repo Watir

    Watir Powered By Selenium

  • 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 Ruby Tests Profiling Toolbox

    Ruby Tests Profiling Toolbox

    Project mention: Learning resources to broaden the knowledge | reddit.com/r/rails | 2021-05-13

    I also love the test-prof documentation, there's a lot of good ideas on how to improve test performance.

  • 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 | news.ycombinator.com | 2021-02-10

    remote: https://github.com/thoughtbot/appraisal

  • GitHub repo Konacha

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

  • GitHub repo Phony

    E164 international phone number normalizing, splitting, formatting.

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-11-26.

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 9,602
2 Capybara 9,475
3 factory_bot 7,353
4 vcr 5,246
5 WebMock 3,597
6 shoulda-matchers 3,155
7 timecop 3,102
8 Parallel Tests 3,020
9 minitest 2,956
10 RSpec 2,837
11 Database Cleaner 2,744
12 Spring 2,698
13 inspec 2,443
14 mutant 1,792
15 DuckRails 1,690
16 ffaker 1,459
17 Watir 1,409
18 Spork 1,402
19 Ruby Tests Profiling Toolbox 1,381
20 Machinist 1,127
21 Appraisal 1,115
22 Konacha 1,066
23 Phony 929
Find remote jobs at our new job board 99remotejobs.com. There are 32 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com