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 ...
Get Sams Teach Yourself Node.js in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.