facebookarchive / ios-snapshot-test-case

Snapshot view unit tests for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Square reference images with iOS 9.0 deployment target

pahnev opened this issue · comments

Hey, just tried to add this to my project but noticed that all the tests produced square reference images of size 1200x1200. After a long couple hours trying to figure out and comparing to test projects, I noticed that the deployment target was the issue.

Raising the deployment target of the project to iOS 9.1, would solve this, but that’s not possible yet.
Raising the test target’s deployment has no effect.

Here’s an example project I created: https://github.com/pahnev/SnapshotTestProject

As you can see the reference image is 1800x1800, even though it should be from iPhone7plus
https://github.com/pahnev/SnapshotTestProject/blob/master/SnapshotTestTests/ReferenceImages_64/SnapshotTestTests.SnapshotTestTests/testSnapshot_iPhone10_3_1_414x736%403x.png