Good Test, Bad Test
summary
Argues tests must be fast, selective, repeatable and helpful by failing loudly with useful messages; warns that chasing 100% coverage leads to brittle tests when code touches the internet (examples: S3) so avoid testing the internet and keep plumbing dumb and asserted. Recommends one clear behavior per test — literally one assertion per test — and replaces mocks with verified doubles (or ship doubles with libraries) to prevent false positives and fragile suites.
AI-written summary · about
chapters (11)
- 0:00Introduction to testing talk
- 0:20What makes a good test
- 3:54Myth of 100% coverage
- 7:08Avoid asserting everything
- 11:22Dangers of mocking
- 15:49Test smells and design
- 16:51Q&A on third-party APIs
- 17:55Q&A on test runners
- 19:23Q&A on test dependencies
- 20:28Q&A on real vs mocked databases
- 24:00Closing and thanks
