13.11 Snapshot tests

  • sometimes difficult or awkward to describe expected results with code
  • snapshots are a great solution to this problem
  • record a result in a separate, human-readable file and then compare at a later time
  • useful for monitoring user interface, testing images or other complicated objects