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

Where is failed image located? #200

Open
sarunw opened this issue Oct 18, 2016 · 5 comments
Open

Where is failed image located? #200

sarunw opened this issue Oct 18, 2016 · 5 comments

Comments

@sarunw
Copy link

sarunw commented Oct 18, 2016

When a test failed, does this lib save failed image somewhere? I want to know which part of the image is not matched my reference.

@Grubas7
Copy link
Contributor

Grubas7 commented Oct 18, 2016

No, there's no feature of saving failed views.
Currently you can just copy your reference image, record failed one and compare both manually.

@neilkimmett
Copy link

If you look in the log output you will see a line like

ksdiff "/Users/name/Library/Developer/CoreSimulator/Devices/3BB325ED-42E2-44FA-A5BC-7C5F94A458D1/data/Containers/Data/Application/86124A0C-4345-4FB2-95C1-AC6F8D30A0FC/tmp/Unit_Tests.ViewControllerTests/[email protected]" "/Users/name/Library/Developer/CoreSimulator/Devices/3BB325ED-42E2-44FA-A5BC-7C5F94A458D1/data/Containers/Data/Application/86124A0C-4345-4FB2-95C1-AC6F8D30A0FC/tmp/Unit_Tests.ViewControllerTests/[email protected]"

If you have Kaleidoscope installed you can paste that into Terminal to open the images side-by-side. If not open that folder and you'll find the original image, the failed image, and a diff of the two.

@pres
Copy link
Contributor

pres commented Nov 5, 2016

There is IMAGE_DIFF_DIR, see #177.
I created a PR to add it to the README.

@Grubas7
Copy link
Contributor

Grubas7 commented Nov 6, 2016

@pres Nice! I'm using Snapshots for a long time and I didn't know about this feature.

@Grubas7
Copy link
Contributor

Grubas7 commented May 30, 2017

@sarunw @nscoding Can you close this issue?

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

4 participants