From the course: JavaScript: Test-Driven Development (ES6)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Disadvantages of TDD

Disadvantages of TDD - JavaScript Tutorial

From the course: JavaScript: Test-Driven Development (ES6)

Start my 1-month free trial

Disadvantages of TDD

- [Instructor] Now that we've covered the major advantages of TDD, it's only fair to talk a little bit about some of the disadvantages. The most common complaint that people have when it comes to TDD is that it takes a lot more time than just writing code without tests and this is absolutely true, at least at first. The way I look at it is this. In the same way that spending a little money to get your car's oil changed regularly saves you a lot of money later on because of the damage it prevents, spending a little extra time to write tests for your code will save you a lot of time later on when the code base becomes larger and larger and bugs become harder and harder to track down. Ultimately, the choice comes down to this. Would you rather spend time now writing tests or spend time later on tracking down more and more bugs? And to that end, another potential downside of TDD, which is more of a company culture thing…

Contents