Part 4 Design and process

 

These final chapters cover the problems you’ll face and the techniques you’ll need when introducing unit testing to an existing organization or codebase.

In chapter 9, we’ll talk about test readability. We’ll discuss naming conventions for tests and input values for them. We’ll also cover best practices for test structuring and writing better assertion messages.

Chapter 10 explains how to develop a testing strategy. We’ll look at which test levels you should prefer when testing a new feature, discuss common antipatterns in test levels, and talk about the test recipe strategy.

In chapter 11, we’ll deal with the tough issue of implementing unit testing in an organization, and we’ll cover techniques that can make your job easier. This chapter provides answers to some tough questions that are common when first implementing unit testing.

In chapter 12, we’ll look at common problems associated with legacy code and examine some tools for working with it.