Improved difference image to better show subtle differences. #515
CraigSiemens
started this conversation in
Ideas
Replies: 2 comments
-
Hey @CraigSiemens, this is a great idea, but I'm going to move it over to our discussions because it isn't really a bug with the library. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm facing the same issue, lots of failed tests and blank diffs after the app was updated with iOS 15 SDK. Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to normalize the difference image that's created when a snapshot fails? That way if a snapshot only has really subtle differences, they can still be seen in the difference image.
We're updating our app to build with Xcode12 and iOS 15. A bunch if our image snapshot tests have started failing, presumably due to rendering differences between iOS 14 and 15. When we look at the difference image that generated, they look blank.
This is an extreme example, but does show it off.
If I take the image, open in preview > adjust colors > auto levels, it brightens up the areas of the image that are different.
This is cropped to show the important part.
It'd be nice if the output image could be normalized to brighten up those ares without needing to use another tool.
Another option could be to do something like the
compare
command from ImageMagick which shows a faded out version of the reference image, then colors in red any part that is different.This is from running
compare reference.png failure.png output.png
Beta Was this translation helpful? Give feedback.
All reactions