Property-based testing defines an input generator and an invariant instead of selecting only a few examples. Shrinking a failing input to a smaller counterexample makes the bug easier to understand.
The demo streams generated numbers through a property check and isolates a failure. Many runs do not help if the generator or invariant misses important cases.
When to use
Use it for invariants in sorting, serialization, parsers, and similar transformations.