Snapshot & Preview-Driven Testing
Catch visual regressions across states.
Catching Visual Bugs
Some bugs are not crashes; they are layout slips you only see. Snapshot tests catch these by comparing images of your views. 👀
How Snapshots Work
A snapshot test renders a view to an image once, saves it, then fails later if a new render no longer matches.
All lessons in this course
- Unit Testing ViewModels
- Testing Async Code
- UI Tests with XCUITest
- Snapshot & Preview-Driven Testing