Sustainable way of testing your code
summary
Claims a maintainable test architecture that survives years of change and shows concrete tools and tradeoffs: uses nose parameterized examples, exposes an inheritance bug with subclassed test data, and proposes a working alternative using a custom unit test loader (plus discussion of decorators, metaclasses and frames). Gives hard numbers — 23% of code is tests and test LOC jump from 143,000 to nearly half a million — and demonstrates checking uniqueness of Sentry handlers rather than brittle looped assertions.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 2:20Readable tests
- 4:29Given-when-then pattern
- 8:47Organizing tests
- 10:38Loops harm debugging
- 12:08Parameterized tests
- 15:01Goals for parameterization
- 18:39Metaclasses for inheritance
- 22:07Frames for test generation
- 23:55Custom test loaders
- 26:34Applying methods
- 27:19Q&A








