Summary

It is widely accepted that the inheritance relationship provides a powerful analysis and design tool. It provides a very powerful testing tool as long as inheritance is applied during design in accordance with the substitution principle. An inheritance relation holds for test suites. Test suites for subclasses can be derived from the test suite for their parent classes. Based on an analysis of the changes, we can decide what test cases need to be added, what test cases need to be rerun, what test cases need to be modified, and what test cases do not need to be run at all. PACT provides a very useful way of organizing test drivers for class testing.

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.