Pattern: Include the deployment step in the testing process

We want our test to
- start from scratch,
- build a deployable system,
- deploy it into a production-like environment, and then
- run the tests through the deployed system

benefits

  • deployment is error prone => now covered by tests
  • development team bumps into the rest of the organization
If it’s going to take six weeks and four signatures to set up a database, we want to know now, not two weeks before delivery.

(src: Book: Growing Object Oriented Software, Guided By Tests - Steve Freeman & Nat Pryce)