swift-snapshot-testing
swift-snapshot-testing copied to clipboard
📸 Delightful Swift snapshot testing.
**Describe the bug** Only happens on linux 1. clone https://github.com/doozMen/swift-testing-main-bug 2. run unit tests with visual studio in debug You will see it crashes. The docs state that `Thread.isMainThread` is...
## Overview This PR introduces a plugin for image serialization that all existing strategies will be using by default, enhancing the flexibility and extensibility of image handling within the framework....
### Discussed in https://github.com/pointfreeco/swift-snapshot-testing/discussions/912 Originally posted by **123shruti** September 24, 2024 I'm using the this library to create snapshot tests in my iOS project. I have a test case where...
### **Objective:** In the event of a failing snapshot test, keep in disk artifacts not only for the snapshot that failed, but also for the reference against it was compared...
This is a preview of what I've been working on over the past few months. It all started with #760, #742 and #973. I began by testing the proposed solution...
**Describe the bug** We have two teams located in the US and Hyderabad, India. Our team in India is encountering issues when capturing snapshot images, which differ from those generated...
Resolves rendering issues (#606, #790) caused by layer.render(in:) no longer matching runtime visuals on iOS 17+. This change uses drawHierarchyInKeyWindow: true when safe (e.g. SwiftUI + key window), preserving CI...
**Describe the bug** Snapshot tests for iPad devices fail when using Swift Testing in CI environments only and not locally. Due to the missing attachment support for Swift Testing, it's...
When wrapping a custom assert function for SwiftUI.View, we may want to write the following code. ```swift #if canImport(AppKit) typealias PlatformHostingController = NSHostingController #else typealias PlatformHostingController = UIHostingController #endif func...
Fix the compile issue for example code in verifySnapshot documentation.