swift-snapshot-testing
swift-snapshot-testing copied to clipboard
📸 Delightful Swift snapshot testing.
It adds macCatalyst support by skipping unused APIs and using conditional compilation for tests.
This PR adds support for `SNAPSHOT_CONFIGURATION_NAME` environment variable which can be used in Test Plans configurations. When aforementioned variable exists, another level of directory nesting is added to store separate...
… and reduced redundancies by making `NSImage`, `UIImage` and `CGImage` share the same diffing logic.
While **SnapshotTesting** already comes with quite a few batteries included, once you try to use it for types other than views there still are [plenty](https://github.com/pointfreeco/swift-snapshot-testing/pull/391) [of](https://github.com/pointfreeco/swift-snapshot-testing/pull/315) [desirable](https://github.com/pointfreeco/swift-snapshot-testing/pull/349) [types](https://github.com/pointfreeco/swift-snapshot-testing/pull/387) [and](https://github.com/pointfreeco/swift-snapshot-testing/pull/388) [strategies](https://github.com/pointfreeco/swift-snapshot-testing/pull/391)...
Add snapshot comparison for hashable elements based on their hash values. The idea behind that is to be able to check UIView screenshot without having to store its heavy pixel...
Hi! When I rewrite one of my snapshot written with `FBSnapshotTestCase`, I find that the snapshot does not have the layer I added to an image view, but the old...
Fixes a crash when calling [XCTestObservationCenter addTestObserver:] that would fail an assertion: 'Test observers can only be registered and unregistered on the main thread.' Fixes: https://github.com/pointfreeco/swift-snapshot-testing/issues/661
If `SNAPSHOT_ARTIFACTS` value is dynamically obtained from an environment variable, an empty string is set for the non-existing variable. This change prevents writing the artifacts to an invalid / prohibited...
As mentioned in this [issue](https://github.com/pointfreeco/swift-snapshot-testing/issues/741) `Snapshotting.wait` does not work `UIViewController` if `view` property is not accessed From quick debugging it seems it's because view is created, then snapshotting waits for...