Appendix C. Test Framework Examples

“There’s more than one way to skin a cat.”

Anonymous

There are many acceptance test frameworks. This appendix has a few examples for the application described in this book.

The Examples

These examples show how the tests in this book are expressed in different frameworks. The corresponding table-style tests are in Chapter 10, “User Story Breakup,” and Chapter 11, “System Boundary.” They all perform the following operations:

• Set up persistent storage with a customer and a CD.

• Check-out a CD.

• Check-in a CD with a simple rental fee computation.

• Verify the computation of the rental fee for an upcoming change in how rental fees are calculated, based on the CD category.

The Check-Out CD and Check-In ...

Get Lean-Agile Acceptance Test-Driven Development: Better Software Through Collaboration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.