Look! No Hands!

You can’t hang around all day turning the handle on your test machinery. Manually invoking test after test isn’t my idea of a great day’s programming. Repeated regression testing would rapidly get boring. It wouldn’t just be boring, but also slow, inefficient, and prone to human error. The golden testing rule is simple: Automate.

KEY CONCEPT

Automate your code testing as much as possible. It’s quicker and easier than running tests by hand, and it’s far safer: The tests are more likely to be run regularly.

If the tests run without any intervention, they can be triggered as a validation phase of your build procedure. Before you play with some freshly built software, you’ll know the unit tests have automatically run and passed; you’re ...

Get Code Craft 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.