Chapter 16. Transforming Workflow Tests into Calculation Tests

After writing several related workflow tests, we see an underlying pattern. Rather than repeatedly copying a test and making small variations, it pays to clarify the essential elements of the test.

We end up collapsing a large number of workflow tests into a few tables of calculation tests. We do this by cutting to the essential nature of the underlying business rules. As we’ll see, it’s not necessarily obvious from the start where we’ll end up.

Programmers: The fixture code for the tests in this chapter is given in Chapter 35.

16.1 Introduction

As we mentioned in Chapter 13, Seth wanted to revisit the business rules for late returns. But on Friday morning, Mitra, Emily, Sarah, ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.