SnapshotTesting
• Runs as unit tests
• Captures snapshot on first run
• Compares to previous snapshot on
subsequent runs
Slide 6
Slide 6 text
What to snapshot?
Slide 7
Slide 7 text
Views & ViewControllers
• Options for simulating specific
devices (⚠)
• Option for precision (<100% pixels
matched)
Slide 8
Slide 8 text
Encodables
Slide 9
Slide 9 text
Anything(!)
Slide 10
Slide 10 text
Demo
Slide 11
Slide 11 text
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