Rules of Thumb for Unit Testing

The following heuristic applies to unit testing. First, cultivate tests that focus on a particular piece of code. Second, monitor tests using debugging tools such as those available in popular integrated development environments (IDEs). Third, use techniques such as single stepping, variable inspection, and memory leak detection. Fourth, manipulate code and data so that all the functionality of a given piece of code is thoroughly tested.

Get Just Enough Software Test Automation 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.