Adventures in not writing tests
summary
Claim: type hints plus Hypothesis generate meaningful tests so you spend less time handcrafting examples. Tools used: Hypothesis Ghostwriter to scaffold tests, hypothesis.extra.pandas to synthesize DataFrames, and property-based assertions. Example runs with 10,000 samples expose NaNs, infinities, empty inputs and negative values that cause real failures; tests reveal bugs in aggregation and percentile code, lead to added guards and assumptions, and result in reproducible, automated checks that actually catch and fix faults.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:17Analysis code in practice
- 6:32Property-based testing with Hypothesis
- 13:28Bugs in vacation code
- 16:17Generating test data frames
- 21:20Edge cases with Hypothesis Pandas
- 23:55Advanced Hypothesis tools
- 26:05Tests versus Hypothesis
- 27:07Q&A








