Exercises

7-1. Hierarchical, incremental testing (HIT) approaches testing with an idea that, with a little analysis, we can avoid retesting code that has already been tested. Select classes from an inheritance hierarchy on your project and perform a HIT analysis. Estimate the effort to implement enough test cases to fully test all classes in the hierarchy and compare that estimate with your HIT analysis effort.

7-2. Write a test driver for an abstract class with a small number of operations. Evaluate the effort needed to test the class using the three approaches described in the last part of this chapter.

7-3. Implement a PACT hierarchy of Tester ...

Get A Practical Guide to Testing Object-Oriented Software 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.