Rapid
pgregory.net
- Free plan
- Self-hosted
What Rapid is
Rapid is a free Go library for property-based testing. It checks properties you define against automatically generated test cases, using type-safe generators that favor small values and edge cases. When a failure occurs, Rapid minimizes the case before presenting it; it can also save minimized failures and rerun them. The library supports state machine testing, and its MakeFuzz function lets a Rapid test act as a target for Go’s standard fuzzer. Tests run with go test, and options can be configured through flags prefixed -rapid. or corresponding 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 says 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, while lacking the coverage-guided feedback and mutations available in Go’s testing.F.Fuzz. Its listed plan is free, and its supported language is Go.
Who it suits
Rapid suits Go developers who want generated test cases for structured data or state machine behavior. It may be a fit when minimized, repeatable failures matter and coverage-guided feedback is not required.
Good to know, and what to watch
- Automatically minimizes failing test cases
- Can persist and rerun minimized failures
- Supports state machine testing
- Has no dependencies outside Go’s standard library
- Supports Go only
- Lacks coverage-guided feedback and mutations
Plans
Every plan and priceRapid
Free plan
The verdict
Rapid provides property-based testing with failure minimization and state machine support in a Go library. Its lack of coverage-guided feedback and mutations is a key limitation for developers comparing testing approaches.
What the maker publishes
- Automatic minimization
- When a failure is found, Rapid automatically minimizes the failing test case before presenting it. source
- 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. source
- Configuration
- Rapid's options can be set with flags prefixed -rapid. or corresponding RAPID_ environment variables. source
- Data generation
- Its type-safe generators use generics and bias data generation toward small values and edge cases. source
- Dependencies
- Rapid has no dependencies outside the Go standard library. source
- Failure persistence
- Rapid supports persisting minimized failing test cases and automatically rerunning them. source
- Fuzzing integration
- The MakeFuzz function lets a Rapid test be used as a fuzz target for Go's standard fuzzer. source
- License
- Rapid is licensed under the Mozilla Public License Version 2.0. source
- Stability
- The project says tests should continue to work across future releases with the same major version, subject to stated API-change exceptions. source
- Stateful testing
- Rapid supports state machine testing. source
- Usage
- Rapid tests run with the standard go test command. source
- What it does
- Rapid is a Go library for property-based testing that checks user-defined properties against automatically generated test cases. source
Checked against the maker's pages on 3 Oct 2026.