Effortless iOS Snapshot Testing Using Emerge Tools
Article Summary
Handshake's iOS team just eliminated nearly 3,000 lines of testing and demo code. Their secret? Rethinking how they do snapshot testing.
Senior iOS Engineer Justin Shapiro shares how Handshake migrated from Point-Free's SnapshotTesting library to Emerge Tools for their Design System. The move addressed major pain points around reference image management, local test execution, and test boilerplate.
Key Takeaways
- Removed 721 lines of test code and made 1,923 lines of demo code obsolete
- Zero lines of code needed: Emerge auto-generates tests from SwiftUI previews
- No more Git-stored reference images or Xcode version matching headaches
- PreviewGallery feature auto-generates a component showcase in their debug menu
- Snapshot diffs appear directly in PRs with one-click reference image updates
Critical Insight
By switching to Emerge Tools, Handshake eliminated nearly 3,000 lines of code while making snapshot testing fully automatic and developer-friendly.