O'Reilly logo

Fit for Developing Software: Framework for Integrated Tests by Ward Cunningham, Rick Mugridge

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 28. FitLibrary Fixtures

As we saw in Chapter 10, if the first table of a sequence is a DoFixture, subsequent tables with actions don’t need to include a fixture name. We also introduced several new fixtures for testing lists, as well as CalculateFixture and SetUpFixture, new fixtures for testing calculations and for handling setup respectively. In this chapter, we cover writing fixtures for the examples in Chapter 10 and explain the operation of the FitLibrary fixtures.

28.1 Flow-Style Actions with DoFixture

The first test for the chat server from Section 10.1 on p. 71 is shown again in Figure 28.1. Fit interprets the sequence of tables in the following steps.

Figure 28.1 TestDisconnect

1.   For the first table a fixture object ...

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