DEV Community

Discussion on: Why TDD?

Collapse
 
quii profile image
Chris James • Edited

Yup, I have been in many a codebase, reluctant to refactor because of the sheer pain of having loads of tests complain at me.

But some would take this as an excuse to not write unit tests at all and only write integration/functional tests, which bring a number of different problems instead. Namely harder to read, write and slower to run and debug.

The real solution is to write good unit tests :)