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

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