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 35. Running Calculation Tests Indirectly

Programmers: The tables that use this fixture code are given in Chapter 16.

In Chapter 16, we showed that many similar action tests may being used to test several business rules, including rules that are better handled as calculation tests. We now show two ways that Emily and Neo implemented the fixtures for those calculation tests. One approach is to have a fixture that calls directly into the specific logic that handles that business rule. This approach is good when the business rule is encoded as a distinct piece of logic, ideally as a function that can be called directly.

The other, indirect, approach is similar to the approach Emily used in Chapter 32, when there was no API that she could ...

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