DevOps & Tooling / Knowledge library
Property-Based Testing
Generates many inputs and checks invariants rather than only example outputs
Why learn Property-Based Testing?
It explores edge cases humans may not enumerate
The problem it solves
It validates general behavioral rules across a broad input space
Where it came from
Property-Based Testing is a software testing technique that generates many inputs and checks invariants rather than only example outputs. Its guarantees and tradeoffs depend on the concrete implementation and operating context.
Build your understanding
Work through these exercises in order. Try the task before opening a reference.
- Define Property-Based Testing and distinguish it from a neighboring concept.
- Choose a realistic task where Property-Based Testing is appropriate.
- Identify a failure mode caused by misusing Property-Based Testing.
- Interpret a small design or result involving Property-Based Testing.
- Explain one tradeoff or limitation of Property-Based Testing.
Documentation and sources
- ISTQB Glossary (glossary.istqb.org)