DEV Community

Discussion on: What was your TDD aha moment?

Collapse
 
revskill10 profile image
Truong Hoang Dung

If you're testing a broken abstraction, your test doesn't work.
Tests could help you refine your abstraction, but test doesn't create the abstraction itself.
That's why focus on good code first, good tests come out later and naturally.