Javascript Icon
Learn Test Driven Development With Mocha
Continue your learning by starting Learn Test Driven Development With Mocha.


We recommend that you complete the following course before you begin: Learn Test Driven Development With Mocha.

Course Outcomes

In this course, you will learn what test-driven development means, and how to practice it with the Mocha.js testing library. You will learn how to use the red-green-refactor cycle to start building your own test suite. We will also walk you through writing test code and implementation code, explaining how they follow the TDD process.

Why Learn Test Driven Development With Mocha?

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. We write software to automate our lives, so why not write programs to test our code as well? At the end of the day, testing is about saving time and money. Consider automated tests an investment. At first, you will add time by writing tests you would otherwise not be writing. However, most real applications don’t stay the same; they grow. An effective test suite will keep your code honest, and save you time debugging over the lifetime of the project. The time savings grow as the project progresses.