Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Unstable snapshot images despite running the same set up #237

Open
macduy opened this issue Aug 30, 2017 · 1 comment
Open

Unstable snapshot images despite running the same set up #237

macduy opened this issue Aug 30, 2017 · 1 comment

Comments

@macduy
Copy link

macduy commented Aug 30, 2017

Running the same test in the same version of Xcode (8E3004b) and same version of Simulator (10.3.1) on two different machines can produce slightly different images (e.g. certain views being 1px taller).

This causes our snapshot tests to fail. Do you have insight why this could be happening and if there are recommendations on how to work around this?

@durul
Copy link

durul commented Oct 20, 2017

I experienced same problem. I think the reason is Derived data. ios-snapshot-test-case keeps reference in Derived data and referenceImage files. Another machine does not have same references and referenceImages. If someone provide more accurate and official answer, I will appreciate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants