DEV Community

Discussion on: When TDD doesn't click, something else should click "harder"!

Collapse
 
yaser profile image
Yaser Al-Najjar

Love those points, they touch the crux of the matter!

Your unit tests should describe the behavior of the code

You're spoiling the fun of the next post 😁

Collapse
 
mike_christian profile image
Mike Christian

Oops!

TDD is a massive shift in thinking for most people. It requires practice and patience. It took me about 5 days before the concept clicked, and I suddenly understood the intent. Everything suddenly made sense and I saw the dangers of traditional practices.

This forced me to learn decoupling architectures and mocking frameworks. My code vastly improved.