Organizing Testing Software
The relationship between test requirements for a subclass, such as MovableSprite, and the test requirements for a base class supports an inheritance relationship between Tester classes that we described in Chapter 5. In other words, we can develop a test driver for a subclass D by deriving its Tester class from the Tester class for C, D's superclass. Figure 7.7 shows the structure, which we refer to as the parallel architecture for class testing (PACT) [McGr97]. The structure determined by PACT for the Sprite class hierarchy is shown in Figure 7.8.
Figure 7.7. Parallel architecture for class testing (PACT)
Figure 7.8. ...
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.