Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Rantly

github.com

  • Free plan
  • Self-hosted
6.6 Club score Visit github.com

What Rantly is

Rantly is a free, self-hosted Ruby library for generating random test data and running property-based checks. It describes its implementation as a recursive-descent interpreter whose methods return random values, including strings, integers and floats. Generators cover integers, ranges, floats, booleans, choices, weighted frequencies, arrays, strings and hashes. The project documents extensions for Test::Unit, Minitest and RSpec. Property checks run 100 times by default; a check argument or the RANTLY_COUNT environment variable can change that count. Optional shrinking can reduce a failing value, but the documented search allows at most 1,024 shrinking operations, does not explore the complete failure tree and does not shrink ordinary arrays or hashes. Installation uses `gem install rantly` or a Gemfile. The README requires Ruby 3.2 or later, while RubyGems lists version 3.0.0 with Ruby 3.3 or later. Code is released under the MIT License, and the project welcomes contributors.

Who it suits

Rantly suits Ruby developers who need generated inputs and property checks in Test::Unit, Minitest or RSpec. It is self-hosted and free under the MIT License.

Good to know, and what to watch

  • Generates many common data types
  • Supports three Ruby test frameworks
  • Configurable property-check count
  • Optional failing-value shrinking
  • MIT-licensed and free
  • Ordinary arrays and hashes are not shrunk
  • Shrinking search is capped at 1,024 operations
  • Ruby requirements differ by source

Rantly

Free

Free plan

The verdict

Rantly provides broad random-data generators and integrations for Ruby property testing without a license cost. Teams should note the limits of shrinking and verify which Ruby version their installation requires.

What the maker publishes

Data generators
Its generators include integers, ranges, floats, booleans, choices, weighted frequencies, arrays, strings, and hashes. source
Implementation
Rantly describes itself as a recursive-descent interpreter whose methods return random values such as strings, integers, and floats. source
Install
The README says to install it with `gem install rantly` or add it to a Gemfile. source
License
The project code is published under the MIT License. source
Maintainers
The project README welcomes new contributors. source
Package release
RubyGems lists version 3.0.0 dated October 21, 2024. source
Platform requirement
RubyGems lists the required Ruby version for version 3.0.0 as >= 3.3.0. source
Property test count
Property checks run 100 times by default, with the count configurable by an argument to `check` or the `RANTLY_COUNT` environment variable. source
Purpose
Rantly generates random test data and provides a Test::Unit extension for property-based testing. source
Ruby requirement
The repository README says Rantly requires Ruby 3.2 or higher. source
Shrinking
Optional shrinking can reduce failing values; the documented search is limited to at most 1024 shrinking operations and does not fully traverse the failure tree. source
Shrinking limitation
The README says ordinary arrays and hashes are not shrunk. source
Testing integrations
The README documents extensions for Test::Unit, Minitest, and RSpec. source

Checked against the maker's pages on 9 Oct 2026.