I hate writing tests, that's why I use Hypothesis
summary
Argues that Hypothesis replaces hand-picked examples with property-based testing that generates inputs and finds edge cases, using pytest integration via the given decorator and explicit strategies (text, numpy/pandas strategies via hypothesis[numpy]). Shows a round-trip encode/decode example, explains the Ghostwriter that ghostwriter generates tests from typing and runs a battery of checks (idempotence, round trips, equivalents). Notes generated tests can be slower and harder to read for very large libraries.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:08Traditional test challenges
- 3:37Property-based testing
- 7:53Hypothesis implementation
- 9:19Live demo with Hypothesis
- 12:52Hypothesis with NumPy
- 14:58Ghostwriter automation
- 18:05Ghostwriter strategies
- 23:05Limitations of Hypothesis
- 25:10Q&A








