Rantly review
A flexible Ruby library for generated data, property tests, and optional shrinking.
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Rantly is an open-source Ruby gem for generating random test data and writing property-based tests. It is designed for developers testing Ruby applications and libraries, with generators for integers, floats, booleans, strings, arrays, and hashes. Teams using Test::Unit, Minitest, or RSpec can add property-testing extensions while keeping their existing test framework. Ruby teams wanting control over generated inputs will find its scope a natural fit.
The library’s generation model is flexible rather than limited to primitive values. Recursive and size-controlled generation supports structured data, while composition can use call, branch, and frequency-based selection. Configurable case counts let teams set how many generated examples a property test evaluates. Guarded generation adds retry limits for constrained inputs, and optional shrinking can reduce failing values to smaller counterexamples. These controls make Rantly useful when properties depend on varied or structured test data.
Rantly is distributed as open-source software and does not introduce paid plan tiers into the choice. Its main tradeoff is focus: support is centered on Ruby and three Ruby test frameworks, so teams maintaining polyglot suites will need a different approach for other languages. The library also concentrates on data generation and property extensions rather than a broader testing platform. Choose Rantly when Ruby generators, composable inputs, configurable case counts, and optional shrinking are the priority; choose an alternative when cross-language coverage or a wider testing workflow is required.
Rantly pros and cons
- Where it wins
- Generates primitive values plus structured arrays and hashes
- Works with Test::Unit, Minitest, and RSpec
- Supports composition, case counts, guards, and optional shrinking
- Where it doesn't
- Ruby-only support limits use in polyglot test suites
- Guarded generation requires attention to retry limits
- Its focus is narrower than full testing workflow platforms
Rantly fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update