Writing a test plan people actually read

Part 2: Controlling time and randomness

Fixtures live next to the tests that use them and describe a real situation, like a customer with an expired card, rather than a pile of random fields.

  • One behaviour per test
  • Freeze the clock and seed randomness
  • Name fixtures after real situations
  • Keep the main suite under three minutes

Leave a comment

Your email address will not be published. Required fields are marked *