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 15. Tests Involving the Date and Time

Our group continues to evolve the rental tests from the previous chapter, finding that it’s good to use a common SetUp while avoiding unnecessary interactions between tests. The group finds that it’s easy, after all, to write tests that depend on the date and time.

When tackling business transactions, the group makes such transactions explicit in the tests. Finally, the group develops sad-path tests, which check when things go wrong.

Programmers: The fixture code for the tests in this chapter is given in Chapters 33 and 34.

15.1 Introduction

On Thursday, Emily, Don, and Sarah continued with the tests. Emily suggested that they start with deposits: “That seems simple and would be a good warmup ...

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