Chapter 5. Testing Principles

Although this book has many specific recipes for testing particular circumstances, several of the techniques may be applied in a wide variety of situations. As with any skill, proficiency comes from learning the mechanics and practicing them. Real expertise comes from understanding the reasons behind the mechanics. This chapter addresses that reasoning.

Applying these principles to your test writing will help you figure out which test patterns are relevant and which particular techniques to use. In the larger scheme, these principles will help you to scale your testing efforts to match the growth of your system without the disproportionate overhead that often occurs.

The principles are presented in order of importance. ...

Get Quality Code: Software Testing Principles, Practices, and Patterns 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.