swift-snapshot-testing
swift-snapshot-testing copied to clipboard
📸 Delightful Swift snapshot testing.
Hello, Happy new year :-) I'm not sure if this is a bug report or a request for advice. But I could notice that inline snapshot testing can deadlock. The...
My current workflow for image snapshot tests is usually imagemagik's compare tool, so I'll have a command like ``` compare "1.png" "2.png" png:- | open -a Preview.app -f ``` Unfortunately,...
**Describe the bug** Our project includes several application targets and test target for each of them for environments split purposes. The source code is common for all environments. We import...
**Describe the bug** I would like to write a snapshot test that will test my SwiftUI view containing AsyncImage. To not be dependent on external API which holds images I...
## What Metal is currently unavailable on Github Actions. The `perceptuallyCompare` diffing algorithm relies on Metal render to obtain the level of correspondence to compare it with the given threshold....
I am currently struggling with some snapshots and I do not understand the reasoning for it. This has happened to a lesser extent before but someone else from the team...
**Describe the bug** When generating snapshots for text-based snapshots they are encoded with whatever the recording platform's line ending format is. When attempting to reuse these snapshots on a different...
Looks like there is no way to make snapshots opaque? It would save a lot of space to remove the alpha channel when not needed.
**Describe the bug** Testing with perceptual snapshot comparison fails because the perceptual precision computation returns a value that does not match my perception. **To Reproduce** ```swift struct ContentView: View {...