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

An Introduction to Snapshot testing

An Introduction to Snapshot testing

Freek Van der Herten

September 01, 2021
Tweet

More Decks by Freek Van der Herten

Other Decks in Technology

Transcript

  1. About me Freek Van der Herten Developer at SPATIE @freekmurze

    freek.dev spatie.be/products ohdear.app
  2. What? A file on disk – let’s call it a

    snapshot Test succeeds if the output matches the snapshot If not, the test will fail
  3. Advantages Very easy to get started with Can be used

    to validate complex output Easily update all the tests in one go
  4. testing-laravel.com Premium video course, 6+ hours of video Learn how

    to tests a Laravel app from scratch Tips and tricks to sharpen your skills Two courses in one: Pest & PHPUnit 10 % discount with SPATIE-LOVES-LARACON