Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always output difference percentage vs failureThreshold #132

Open
jsphstls opened this issue May 13, 2020 · 1 comment
Open

Always output difference percentage vs failureThreshold #132

jsphstls opened this issue May 13, 2020 · 1 comment

Comments

@jsphstls
Copy link

jsphstls commented May 13, 2020

I am using failureThreshold to allow tests to pass when browser or system differences are causing discrepancies (#98)

When a test fails, I see:
Error: Image was 1.8474242424242424% different from saved snapshot with 12193 different pixels.

If I increase the failureThreshold, the test passes and the difference percent is no longer in the output. The difference percentage should always be logged with the threshold percent that it was compared against. This would allow me to tune the failureThreshold so that it is not too high and potentially allowing unintended differences.

@jsphstls jsphstls changed the title Always output diff values Always output difference percentage vs failureThreshold May 13, 2020
@mgrn0
Copy link

mgrn0 commented May 25, 2021

Any updates on how to output the diff percentage? I would need the exact same information..

lexanth added a commit to lexanth/cypress-image-snapshot that referenced this issue Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants