Common patterns:

  • Logging
  • Random stability
  • Error handling
  • End-of-test checks
  • Extracting pass/fail