SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Ruby Testing Projects
-
faker
A library for generating fake data such as names, addresses, and phone numbers. (by faker-ruby)
-
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.
-
vcr
Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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.
-
minitest
minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.
-
Database Cleaner
Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.
-
test-kitchen
Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms
-
Spork
A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Project mention: Faker – generate fake data such as names, addresses, and phone numbers | news.ycombinator.com | 2024-04-13
Project mention: Collecting JavaScript code coverage with Capybara in Ruby on Rails application | dev.to | 2024-05-14For 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.
Project mention: Show HN: Factory-JS – TypeScript dummy object generator for testing | news.ycombinator.com | 2024-03-29I 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.
According to the shoulda-matchers documentation:
Project mention: About time: how to unit test code that depends on time | news.ycombinator.com | 2023-12-19The 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.
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.
gem "test-prof" - https://github.com/test-prof/test-prof | Toolkit for inspecting and optimising your test-suite, a must-have.
Ruby Testing related posts
-
Collecting JavaScript code coverage with Capybara in Ruby on Rails application
-
Should You Use Ruby on Rails or Hanami?
-
Spring: Rails Application Preloader
-
Faker – generate fake data such as names, addresses, and phone numbers
-
Show HN: Factory-JS – TypeScript dummy object generator for testing
-
Test Driving a Rails API - Part Two
-
16 Best Ruby Frameworks For Web Development [2024]
-
A note from our sponsor - SaaSHub
www.saashub.com | 15 May 2024
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