-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Tolerance value warning documentation is not correct #282
Comments
I think you are right @adrinieto I'm checking the code where tolerance is computed and it shows: val percentageOfDifferentPixels = differentPixels.length.toDouble / oldScreenshotPixels.length.toDouble
val percentageOutOf100 = percentageOfDifferentPixels * 100.0
val imagesAreDifferent = percentageOutOf100 >= tolerance If
This means 100% of the tests are allowed to be different. I know you've sent a PR changing this combined with another huge change, but I'm going to send a PR changing only our docs. Thanks! |
In the tolerance sections states that:
Where it says
tolerance = 1
should betolerance = 100
.We have failing tests that need a value higher than 1 to pass and in the logs for the passing tests it shows "1.0%"
Also, in the
shot-consumer-compose
build.gradle is set to1.1
The text was updated successfully, but these errors were encountered: