12. Testing and Debugging

Note

Project: Write unit tests for the JavaScript code in kittenbook. Run the unit tests using Grunt.

In this chapter, you learn how to be a really effective programmer. Software testing is the practice of setting expectations for your software and then running your software to see if it meets those expectations. That might sound like the description of an overbearing parent, but software testing is actually good for the software. When your expectations are not met, you can modify the software until it works correctly. When all your expectations are met, you are ready to send your software out into the world (sniff, sniff—they grow up so fast).

To fix software that isn’t meeting expectations, you have to figure out ...

Get Learning to Program 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.