"Is It a bird? Is it a plane?" — the weird shapes we use to talk about testing
summary
Compares concrete test types (unit, integration, end‑to‑end, static/TypeScript, manual), shows common shapes (pyramid, inverted cone, diamond, honeycomb, trophy) and argues tests must describe behavior not implementation. Recommends practices: red‑green‑refactor, watch mode and CI with pre‑push hooks, cyclomatic complexity, Sentry and code‑coverage to find gaps. Highlights a striking stat: 77% reproducible by unit tests on large systems, and suggests starting with a static layer plus broad end‑to‑end checks before filling integration and unit tests.
AI-written summary · about
chapters (20)
- 0:00Introduction and thanks
- 1:14Purpose of testing discussion
- 2:18Common test types and layers
- 6:10Testing shapes overview
- 9:03Pyramid and diamond shapes
- 10:49Honeycomb and trophy shapes
- 12:54Why teams avoid testing
- 15:21Good reasons to test
- 16:47Enabling refactoring
- 18:11TDD fundamentals
- 22:31TDD misconceptions
- 26:01Mocking in TDD
- 27:50Sociable vs isolated tests
- 28:32Key advice for testing
- 29:56Improving developer confidence
- 31:22Testing behavior over implementation
- 33:13Identifying failure points
- 34:41Adapting test shapes
- 36:28Introducing testing in legacy code
- 38:35Q&A session
