DEV Community

Discussion on: What were your problems with "real world TDD"?

Collapse
 
n_develop profile image
Lars Richter

Hi BG Adrian,

I'm absolutely with you. This post / discussion is not meant to show TDD as a cure for everything.

You are right, that most of the benefits, like ability to refactor your code safely, are results of your test suite. It's important to point that out. Thanks for your feedback.

But: TDD is a great way to ensure this test suite. If you follow the TDD cycle, you get the benefits of an automated test suite "for free". As some of the community members already pointed out, writing tests after writing your code, is a pain in a lot of cases. And that's why a lot of people don't write tests at all.

But once again: Automated tests are the biggest / the main benefits of TDD.