DEV Community

Discussion on: What was your TDD aha moment?

Collapse
 
bhserna profile image
Benito Serna

Is hard to know what made all things click... but I think some of the most important for me were...

  • Organizing my code in use cases (this makes easier to know what to test)
  • Decoupling my code from frameworks (this makes tests fast)
  • Not testing every class but testing every use case
  • When I started to mix the The Magic Tricks of Testing by Sandi Metz with the use case approach.