DEV Community

Discussion on: How to TDD when TDD is hard

Collapse
 
gadeichhorn profile image
Gadi Eichhorn

"And the test is now so tightly coupled to the application code that any minor change to the latter ripples over to more and more test tweaks."

Test what the code is doing (outcome) not how it is doing it. Mocking tends to lead you the wrong way.

Like any tool, it can be dangerous in the wrong hands.

Thanks for sharing and good post!