Chapter 9Persistent Fixture Management

About This Chapter

In Chapter 8, Transient Fixture Management, we saw how we can go about building in-memory Fresh Fixtures (page 311). We noted in that chapter that managing Fresh Fixtures is more complicated when the fixture is persisted either by the SUT or by the test itself. This chapter introduces the additional patterns required to manage persistent fixtures, including both Persistent Fresh Fixtures (see Fresh Fixture) and Shared Fixtures (page 317).

Managing Persistent Fresh Fixtures

The term Persistent Fresh Fixture might sound like an oxymoron but it is actually not as large a contradiction as it might first seem. The Fresh Fixture strategy means that each run of each Test Method (page 348) uses ...

Get xUnit Test Patterns: Refactoring Test Code now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.