I'm given exact size .png
renders from Application Design showing exactly what my app should look like on Retina 4", Retina 3.5", etc.
Would like to automate a comparison between these "golden master" renders and screenshots of what the app actually looks like when that screen is shown.
Ideally I would like to have something I can run via continuous integration so I can break the build if a .xib gets messed up.
How can I do this?
Already tried:
- Used Command-S in iPhone simulator to grab a screenshot suitable for comparison
- Used GitHub's excellent image diff interface to manually compare the images
- Pulled them up side-by-side in Preview.app, in actual size (Command-0)
- Did some research on ImageMagick's comparison capabilities (examples)
Possible approaches:
- Getting a screenshot of the app in code is already implemented
- Similarly, I'm pretty sure I can find code to simulate a tap on the screen
- Might need some way to exclude a mask or bounding box of areas known to not match exactly