What Makes a Good Test: Writing Sustainable, Maintainable Tests
summary
Defines a formula for test value = function / cost, where function means fast feedback and reliable documentation and cost means implementation, maintenance, and operation. Recommends the unit/integration/end-to-end test pyramid (keeping unit tests fast—Google guidelines: ~60s units, ~300s integration, ~900s e2e; pixiv runs unit+integration in ~5 minutes), prefers black-box tests to avoid brittle white-box coupling, and uses dependency injection and test doubles plus Arrange–Act–Assert and one-behavior-per-test to keep tests maintainable.
AI-written summary · about
