Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Snapshot testing (dpc)

Snapshot testing (dpc)

Freek Van der Herten

June 30, 2017
Tweet

More Decks by Freek Van der Herten

Other Decks in Technology

Transcript

  1. About me Freek Van der Herten Partner & developer at

    SPATIE @freekmurze https://murze.be
  2. Since 2003 Websites, applications and webshops Team 4 developers, 1

    manager Specialization Laravel development
  3. ± 120 packages on Packagist Laravel, Framework agnostic PHP ±

    4 000 000 downloads in total, growing ±450 000 a month We create a lot of it Open source software
  4. A file on disk, let’s call in snapshot Test succeeds

    if output matches snapshot If not, test will fail What?
  5. Advantages Very easy to get started with Can be used

    to validate complex output Easily update all the tests in one go