There are many testing frameworks out there that utilize interface screenshots for comparison and here’s a library from Facebook specifically for snapshot tests called iOS-Snapshot-Test-Case.
iOS-Snapshot-Test-Case takes a snapshot of the screen when called, compares to a reference image you supply, and if the images don’t match then the test fails.
Orta has released a plugin enhancing Xcode allowing you to quickly see your snapshots within Xcode taken with iOS-Snapshot-Test-Case, and you can see the differences betweenfailed snapshot tests.
Here’s an image showing the plugin in action from the readme:
You can find the iOS-Snapshots-Test-Case library on Github here.
You can find the Snapshots for Xcode plugin on Github here.
A nice library and plugin to aid in user interface testing.
- Simple Library Allowing You To Map Views Used In Your Apps
- Open Source Xcode Plugin That Makes It Easier When Working With NSLocalizedString
- Tool: An Xcode Plugin That Makes Creating Objective-C Documentation Easier
- Xcode Plugin Allowing You To Markup Links And Images Within Code And Console Output
- Tools And Library For Making It Easier To Localize Elements Created With Interface Builder
Original article: Xcode Plugin And Library For Easier User Interface Testing Using Snapshots
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





