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

snapshot testing (phplimburg)

snapshot testing (phplimburg)

Freek Van der Herten

September 07, 2017

More Decks by Freek Van der Herten

Other Decks in Programming


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

    SPATIE Blogging at https://murze.be https://murze.be/newsletter
  2. Open source software ± 160 public repositories on GitHub August

    2016: ± 800 000 downloads August 2017: ± 5 000 000 downloads ± 500 000 downloads a month
  3. A file on disk, let’s call in snapshot Test succeeds

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

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