Chapter 6. Improving the Testability of Software

A fundamental part of defect prevention is to discover defects as efficiently as possible even after they are introduced into software. Architecting, designing, and implementing software that is relatively easy to test increase the efficiency of the testing process and make defects more discoverable. Testability is the degree to which components and systems are designed and implemented for test automation to achieve complete code path coverage and simulate all usage situations in a cost-efficient manner. This chapter introduces the Simplicity, Observability, Control, and Knowledge (SOCK) model of testability and provides practical guidelines for improving testability.

Get The Practical Guide to Defect Prevention 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.