O'Reilly logo

Sams Teach Yourself Node.js in 24 Hours by George Ornbo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 10. Testing Node.js Applications

What You’ll Learn in This Hour:

• Why testing is important

• Testing with the assert module

• Testing with the Nodeunit module

• Testing with the Vows module

• Testing with the Mocha module

Why Test?

In the last hour, you learned about how to debug Node.js applications, and you may be asking why you need to write tests for your application with such powerful debugging tools. Writing tests for applications is something that many developers do not do. This can work if the codebase is small and there is only one developer on the project. But, as applications change and become more complex, it is increasingly difficult to ensure of the stability of code. Tests are repeatable pieces of code that assert that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required