fast-check vs RapidCheck
fast-check
fast-check.devRapidCheck
github.comSide by side
| Figure | fast-check | RapidCheck |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | Yes | — |
| Web | Yes | — |
| Windows | — | Yes |
| Linux | Yes | Yes |
| API | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 0 |
| Spec score · Property-Based Testing Tools | 8.9 (#1) | 7.0 (#21) |
| Integrations | The ecosystem lists official integrations for AVA, Jest, and Vitest, along with connectors for libraries such as Zod and io-ts. | The README lists integrations with Boost Test, Google Test and Google Mock. |
| Purpose | fast-check is a property-based testing library for JavaScript and TypeScript that generates inputs, runs assertions over many cases, and shrinks failures to smaller counterexamples. | RapidCheck is a C++ framework for property-based testing inspired by QuickCheck and similar frameworks. |
| What it does | fast-check is a property-based testing framework for JavaScript and TypeScript. | RapidCheck is a C++ framework for property-based testing that generates random test data to find counterexamples to properties. |
Plans
In their own words
fast-check
fast-check is a property-based testing library for JavaScript and TypeScript. It generates inputs and checks expected behavior across many cases, then reduces a failure to a smaller counterexample to help investigate it. Tests combine arbitraries that create values, properties that describe behavior, runners that execute checks, and plugins that extend runners. It works with Jest, Mocha, Vitest, Ava, Bun, Deno, the Node.js test runner, and other test runners. Runs can be configured with seeds, generated-value sizes, time limits, and result reporting globally or per assertion. fast-check supports stateful testing and reproducible failures; its project also describes fuzzing and generative testing for issues such as race conditions and prototype poisoning. The project is open source under the MIT license, and the listed plan is free. Version 5.x requires Node.js 22.12.0 or later and ECMAScript 2025; TypeScript 5.8 or later is optional.