Top 7 Ruby Test Projects
-
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.
-
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.
-
retest
A simple CLI to watch file changes and run their matching ruby specs. Works on any ruby projects with no setup.
-
string_pattern
Generate strings supplying a simple pattern. Perfect to be used in test data factories. Validate if a text fulfills a specific pattern. Also you can use regular expressions (Regexp) to generate strings: `/[a-z0-9]{2,5}\w+/.gen`. Generate words in English or Spanish.
-
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.
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.
Ruby Test related posts
Index
What are some of the best open-source Test projects in Ruby? This list will help you:
Project | Stars | |
---|---|---|
1 | timecop | 3,334 |
2 | minitest | 3,243 |
3 | retest | 118 |
4 | brutal | 53 |
5 | r_spec-clone.rb | 21 |
6 | string_pattern | 16 |
7 | whaly | 3 |
Sponsored