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

Get Fit for Developing Software: Framework for Integrated Tests now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.