TDD misconceptions
summary
Argues that TDD is often practiced wrong — teams write all the tests or chase 100% coverage and end up testing getters/setters with heavy mocking, which inflates development time and still lets critical bugs escape. Advocates the practical red–green–refactor cycle, shows BDD with Cucumber on a 20–25 year legacy system using only ~3–4 scenario tests per feature, and cites studies reporting pre-release defect density drops of roughly 40–90% when test-first practices are applied.
AI-written summary · about
chapters (15)
- 0:00Introduction to TDD misconceptions
- 1:55Writing all tests before logic
- 3:40Changing requirements challenge
- 5:48First real TDD adoption
- 8:16Testing implementation details
- 10:44100% code coverage myth
- 13:35Overuse of mocks in tests
- 15:19BDD approach success
- 18:34Correct TDD understanding
- 20:40TDD for better design
- 22:05Refactoring and handover ease
- 22:48Common TDD misconceptions
- 24:33Red green refactor cycle
- 25:56Simple code needs tests
- 27:02Q&A and closing
