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

SnapshotTesting in practice

SnapshotTesting in practice

SnapshotTesting is a new iOS framework by the authors of PointFree. In this presentation, we'll walk through how to get started and the numerous ways you can use it for testing & more.

Alek Åström

January 21, 2019
Tweet

More Decks by Alek Åström

Other Decks in Programming

Transcript

  1. SnapshotTesting • Runs as unit tests • Captures snapshot on

    first run • Compares to previous snapshot on subsequent runs
  2. Views & ViewControllers • Options for simulating specific devices (⚠)

    • Option for precision (<100% pixels matched)
  3. Learnings • Super simple to get started • Extensible •

    Enables TDD for views • Eliminates need for fixtures • Same simulator must be used when generating snapshots as on CI • Prepare to get some initial false negatives