A Unit Testing Framework

As with all levels of software testing, unit testing requires that a supporting infrastructure be in place. The unit testing infrastructure must provide the information necessary to design unit tests and unit test data. It must also provide a repository where all unit testing artifacts (tests, test data, and test results) can be permanently stored. This infrastructure must also serve as a test harness for unit test execution, and it must capture and store the test results. ANSI/IEEE STD 1008-1987 defines unit testing and documents a formal unit testing approach (1).

Performing unit tests manually is time consuming and burdensome. This is why developers shy away from it. Of course, as with all endeavors, we develop shortcuts ...

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.