Skip to main content

Tutorials

Hands-on guides to become productive with fast-check, whether you are writing your first property-based test or tackling advanced topics like race conditions.

Why follow a tutorial?

Reading the reference documentation tells you what fast-check can do. Following a tutorial teaches you how to apply it to real code. Each tutorial in this section:

  • starts from a runnable project you can clone locally,
  • walks you through a concrete problem step by step,
  • highlights the fast-check features that matter most for that scenario,
  • ends with takeaways you can immediately bring back to your own codebase.

:::tip New to Property-Based Testing? If the concept itself is new, start by reading What is Property-Based Testing? and Why Property-Based? before diving in. :::

Which tutorial is right for me?

Pick the one that matches where you are today:

All tutorials

Looking for something more specific?

These tutorials are intentionally focused. Once you are comfortable with the basics, the rest of the documentation is organized to help you go further:

  • Core Blocks — the reference for properties, runners and arbitraries.
  • Configuration — fine-tune fast-check to match your project's constraints.
  • Advanced — model-based testing, race conditions in depth, and more.
  • API Reference — the exhaustive list of every exported symbol.