How to test Python-y libraries
summary
Practical advice on testing Python libraries, arguing that investment in library tests yields more value than equal effort on business-logic tests. Covers strategies to make library code robust against breakage of higher-level abstractions, with techniques and guidelines to keep libraries from becoming fragile.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:09Why write libraries
- 2:39Library abstraction pyramid
- 5:13Testing reliability
- 7:19Quality gates
- 8:03Splitting libraries
- 10:56Injecting side effects
- 14:32Library types
- 15:56100% coverage rule
- 17:21Coverage visibility
- 18:23Mutation testing
- 20:55Test quantity vs quality
- 21:19Documentation testing
- 22:45Testing code examples
- 23:28Test file structure
- 24:10Matrix testing
- 25:58CI setup
- 26:20Plugin compatibility
- 27:23Test docstrings
- 28:26Thread safety testing
- 29:27Summary
- 31:11Q&A
