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

Unlock the full course today

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

Advantages of TDD

Advantages of TDD - JavaScript Tutorial

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

Start my 1-month free trial

Advantages of TDD

- [Instructor] So now that we know what TDD is and some of the basic concepts behind it, let's take a look at what some of the advantages and disadvantages of TDD are. We'll start with the advantages. Besides ensuring code quality which, as we discussed in a previous video, is the ultimate goal of test-driven development, there are several other big advantages of writing your tests first. First of all, a big benefit of TDD is that it forces us to clarify our thinking before writing production code. Personally, it used to happen to me quite frequently, that I'd spend time writing a big chunk of code only to find, once I'd finished it, that I hadn't understood the requirements before starting and had to go back and write it all over again. With test-driven development, we're forced to clarify our understanding of the problem at hand before we start coding. On a similar token, TDD provides a way for members of a software…

Contents