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 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 ...

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