Chapter 23Testing
No one would debate that writing tests for software is valuable. There are arguments about which testing methodology might be better or more comprehensive, but there’s one fact that all developers can agree on: any production code should have comprehensive tests. In well-tested software, the amount of test code written often exceeds the amount of functional code. Tests provide a safety net to optimize, refactor, and upgrade the code without fear of introducing unexpected bugs. Good tests can also help developers discover issues before the code is deployed into production. In modern web applications that combine multiple frameworks and libraries, proper testing is the most reliable way to ensure everything continues to run smoothly. ...
Get Full Stack JavaScript Development With MEAN 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.