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

Snapshot testing (nomadphp)

Snapshot testing (nomadphp)

Freek Van der Herten

July 20, 2017

More Decks by Freek Van der Herten

Other Decks in Technology


  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 ±500 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