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 22. Action Fixtures

An ActionFixture table tests that a series of actions carried out on an application work as expected. An ActionFixture fixture starts a named class by creating the actor, an object of that class. Subsequent actions are made through method calls on that separate actor object. This chapter shows the fixtures for the Fit tables introduced in Chapter 4.

22.1 Buying Items

Consider again the summing line items tests from Section 4.1 on p. 23, as shown in Figure 22.1.

Figure 22.1 Fit Table for Testing Line Items

Image

When it runs this table, Fit creates an object of the ActionFixture class and calls its method doTable() ...

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