Closed vojtech-cerveny closed 1 year ago
Hi @vojtech-cerveny, you can use a custom ResultValidator
for that. The built-in ThresholdValidator
seems to be what you're looking for. You can use it like this:
@get:Rule
val dropshots = Dropshots(
resultValidator = ThresholdValidator(threshold = 0.01f),
)
Let me know if this answers your question!
Hey, yup, this is it! Thanks, it wasn't clear from documentation how to use that. It works properly, thanks!
Hey, I didn't find any option to add tolerance to snapshot. Do you think that it would be possible to add?
We have some chart changing in time and we don't care if it is pixel perfect - for example here
It would be nice to have option for that.