parski / SnapshotTest

Snapshot testing tool for iOS and tvOS
BSD 2-Clause "Simplified" License
41 stars 6 forks source link

Save failed snapshot if it differs from reference image #47

Open parski opened 4 years ago

parski commented 4 years ago

Proposed solution:

Save the failed snapshot in the same directory as the reference image and with the same filename but with _failed appended.

I also considered putting all failed snapshots in a separate directory structure allowing for a simpler .gitignore but I thought this approach might be better because it's less complex and we shouldn't be ignoring the failed snapshots (along with their failing tests) anyhow. Opinions are of course welcome.

Prepares for https://github.com/parski/SnapshotTest/issues/9 and solves https://github.com/parski/SnapshotTest/issues/46.