Designing Test Architecture That Does Not Suck
summary
Argues test design around concrete business scenarios (gherkin-style examples), keeping tests atomic and independent, focusing on outcomes not implementation details, and preferring interfaces that stay stable. Recommends Selenium/browser acceptance tests for legacy systems, domain-level integration or unit tests for new code, and postponing widespread testing in early startups. Advises mocking only third-party or remote services — mocks only for external services — using transactions or cleanup for data, and targets fast feedback: 20 seconds locally and about 20 minutes on CI with parallel runs.
AI-written summary · about
chapters (18)
- 0:00Introduction and background
- 1:30Business-driven test architecture
- 4:26Prioritizing what to test first
- 6:59Writing testable business scenarios
- 9:13Readability and stability in tests
- 12:42Focus on results over implementation
- 15:51Why interfaces matter in testing
- 17:20Balancing test speed and quality
- 20:16Choosing the right test level
- 22:52Avoiding test duplication
- 24:41Testing strategies for new projects
- 25:45Testing in startups vs legacy code
- 28:13Managing test data effectively
- 30:21When to use unit vs integration tests
- 31:26Mocking external dependencies
- 32:58TDD approach for test architecture
- 34:25Key takeaways and summary
- 34:50Q&A
