Testing Tools

timecop Recommended

A gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.

timecop 85,412,937 Downloads Last release

travisjeffery/timecop Last commit

factory_bot

factory_bot provides a framework and DSL for defining and using factories - less error-prone, more explicit, and all-around easier to work with than fixtures.

factory_bot 65,978,345 Downloads Last release

thoughtbot/factory_bot Last commit

fabrication

Fabrication is an object generation framework for ActiveRecord, Mongoid, DataMapper, Sequel, or any other Ruby object.

fabrication 4,291,649 Downloads Last release

paulelliott/fabrication Last commit

webmock

WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.

webmock 109,564,713 Downloads Last release

bblimke/webmock Last commit

vcr

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

vcr 46,368,712 Downloads Last release

vcr/vcr Last commit

capybara

Capybara is an integration testing tool for rack based web applications. It simulates how a user would interact with a website

capybara 108,135,031 Downloads Last release

teamcapybara/capybara Last commit

selenium-webdriver

WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application.

selenium-webdriver 95,851,601 Downloads Last release

master/rb

Want to stay up-to-date with Ruby on Rails?

Join 66,029+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.