Design for Testability

With frameworks like Express that make life easy, we can get apps up and running within minutes. But they seem to make it so easy to code that how to write the tests may not be clear. As we’ve discussed before, testability is a design issue. By carefully structuring code, we can perform fully automated testing of Express apps. Let’s see an example.

Maintenance Cost Is Part of Development Cost

images/aside-icons/tip.png Frameworks like Express reduce the time and cost of creating code. Automated verification has the same benefit when changing code. To lower the overall development cost, we want to reduce both the coding cost and the maintenance cost. ...

Get Test-Driving JavaScript Applications 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.