O'Reilly logo

xUnit Test Patterns: Refactoring Test Code by Gerard Meszaros

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8Transient Fixture Management

About This Chapter

Chapter 6, Test Automation Strategy, looked at the strategic decisions that we need to make. That included the definition of the term "fixture" and the selection of a test fixture strategy. Chapter 7, xUnit Basics, established our basic xUnit terminology and diagramming notation. This chapter builds on both of these earlier chapters by focusing on the mechanics of implementing the chosen fixture strategy.

There are several different ways to set up a Fresh Fixture (page 311), and our decision will affect how much effort it takes to write the tests, how much effort it takes to maintain our tests, and whether we achieve Tests as Documentation (see page 23). Persistent Fresh Fixtures (see ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required