-
Notifications
You must be signed in to change notification settings - Fork 70
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
Using imageWithSmartInvert
with isRecording = true/false
- fails everytime
#127
Comments
Hi Parth! Can you provide some more details about what you're snapshotting? Is that a simple |
@NickEntin - i and @abinodhthomas have added a support to add the precision - https://github.com/parikhparth23/AccessibilitySnapshot/commit/ac8477631892330cbed2d0c93043267a1d5203e4 |
If you're seeing this on subsequent runs on the same machine, it sounds like there's likely an underlying issue going on here. While adding precision might work around it, I'd like to see if we can figure out the root problem first. Can you provide a code sample that reproduces the issue? |
@NickEntin i wish i could share the code or even a snippet. the code is a proprietary code. the precision value by default is to match 100% - so it wont affect the existing or future users. And i just confirmed with our team the photos above is not an image- it is actually drawing the circles in code. so this is not a bug. do you mind adding the |
There is now tolerance parameters available when using FBSnapshotTestCase as the snapshotting engine. Support for SnapshotTesting is tracked by #63. That said, I would highly recommend looking into why your views are not able to pass consecutive snapshots on the same machine and only use precision for inter-machine comparison failures. Perhaps you need to disable animations, or something along those lines? The framework is not designed to support snapshotting non-deterministic rendering views. |
I am using the
imageWithSmartInvert
withisRecording = true/false
and the test always failsassertSnapshot(matching: view, as: .imageWithSmartInvert)
My original image is:
when i run with
isRecording=true
it generated the Black/Golden image.when i run it with
isRecording=false
the snapshot does not match reference.i tried opening the image in above locations - both are same -
can you please have a look?
The text was updated successfully, but these errors were encountered: