Freedom251 › Property-Based Testing Tools
Rapid

What Rapid is
Rapid is a free Go library for property-based testing. It checks properties defined by the user against automatically generated test cases, using type-safe generators built with generics that favor small values and edge cases. When a test fails, Rapid minimizes the failing case before presenting it, and it can persist minimized failures and rerun them. The library supports state machine testing, while its MakeFuzz function lets a Rapid test serve as a target for Go’s standard fuzzer. Tests run with the standard go test command; options can be configured with flags prefixed -rapid. or matching RAPID_ environment variables. Rapid has no dependencies outside the Go standard library and is licensed under the Mozilla Public License Version 2.0. The project states tests should continue to work across future releases within the same major version, subject to stated API-change exceptions. Rapid describes itself as suited to structured data and state machine tests, but it lacks the coverage-guided feedback and mutations found in Go’s testing.F.Fuzz.
Who it suits
Rapid suits Go developers who want automatically generated test cases, minimized failures or state machine testing. It may be useful for tests involving structured data and users who run tests with go test.
What it does well
- Automatically minimizes failing test cases.
- Can persist and rerun minimized failures.
- Supports state machine testing.
- Has no dependencies outside the Go standard library.
- Works with Go’s standard go test command.
What to know first
- Lacks coverage-guided feedback and mutations.
- Supports Go only.
- Options use Rapid-specific flags or environment variables.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Rapid | Open-source Go library · No dependencies outside the Go standard library | Free |
As pgregory.net lists them, read 3 Oct 2026. The maker's own page has the final word.
Getting started
- Open the Rapid website.
- Use the Go library in a self-hosted environment.
- Write property tests with Rapid’s generators.
- Run the tests with `go test`.
- Set options with `-rapid.` flags or corresponding `RAPID_` environment variables.
Verdict
Rapid provides property-based testing for Go, including minimized failures and state machine support. Its stated tradeoff is that it lacks coverage-guided feedback and mutations.
Questions
How much does Rapid cost?
Rapid is free. Its listed plan is free.
Which language and test runner does it support?
Rapid supports Go and the Go testing package. Tests run with `go test`.
Can Rapid reproduce failures?
Yes. It minimizes failing cases and supports saving them for automatic reruns.
Does Rapid support fuzzing?
Its `MakeFuzz` function lets a Rapid test serve as a target for Go’s standard fuzzer. Rapid itself lacks coverage-guided feedback and mutations.
What license does Rapid use?
Rapid is licensed under the Mozilla Public License Version 2.0.
Does Rapid have external dependencies?
It has no dependencies outside the Go standard library.
Facts from Rapid's own pages
- Automatic minimization
- When a failure is found, Rapid automatically minimizes the failing test case before presenting it. · github.com, 3 Oct 2026
- Comparison limit
- Compared with Go's testing.F.Fuzz, Rapid describes itself as better suited to structured data and state machine tests, while lacking coverage-guided feedback and mutations. · github.com, 3 Oct 2026
- Configuration
- Rapid's options can be set with flags prefixed -rapid. or corresponding RAPID_ environment variables. · github.com, 3 Oct 2026
- Data generation
- Its type-safe generators use generics and bias data generation toward small values and edge cases. · github.com, 3 Oct 2026
- Dependencies
- Rapid has no dependencies outside the Go standard library. · github.com, 3 Oct 2026
- Failure persistence
- Rapid supports persisting minimized failing test cases and automatically rerunning them. · github.com, 3 Oct 2026
- Fuzzing integration
- The MakeFuzz function lets a Rapid test be used as a fuzz target for Go's standard fuzzer. · github.com, 3 Oct 2026
- License
- Rapid is licensed under the Mozilla Public License Version 2.0. · github.com, 3 Oct 2026
- Stability
- The project says tests should continue to work across future releases with the same major version, subject to stated API-change exceptions. · github.com, 3 Oct 2026
- Stateful testing
- Rapid supports state machine testing. · github.com, 3 Oct 2026
- Usage
- Rapid tests run with the standard go test command. · github.com, 3 Oct 2026
- What it does
- Rapid is a Go library for property-based testing that checks user-defined properties against automatically generated test cases. · github.com, 3 Oct 2026
Where Rapid stands on Freedom251
- Property-Based Testing Tools#18 of 28