You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge remote-tracking branches 'origin/master' and 'fork1/rtl_support_with_test_plans' into main
* origin/master:
Make image diffing strategies custom scale aware (pointfreeco#336)
* fork1/rtl_support_with_test_plans:
Update README
Make configuration directory a subdirectory of file name directory
Change snapshot directory url when SNAPSHOT_CONFIGURATION_NAME environment variable is available
Remove layout direction trait override
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,7 @@ end
192
192
-**Subclass-free.** Assert from any XCTest case or Quick spec.
193
193
-**Device-agnostic snapshots.** Render views and view controllers for specific devices and trait collections from a single simulator.
194
194
-**First-class Xcode support.** Image differences are captured as XCTest attachments. Text differences are rendered in inline error messages.
195
+
-**Support for Xcode Test Plans**. Just add `SNAPSHOT_CONFIGURATION_NAME` environment variable to every Configuration in your test plan (with distinctive names as values) to save separate snapshots for each one of them. It can be used for making UI snapshots with different langauges and locales.
195
196
-**Supports any platform that supports Swift.** Write snapshot tests for iOS, Linux, macOS, and tvOS.
196
197
-**SceneKit, SpriteKit, and WebKit support.** Most snapshot testing libraries don't support these view subclasses.
197
198
-**`Codable` support**. Snapshot encodable data structures into their [JSON](Documentation/Available-Snapshot-Strategies.md#json) and [property list](Documentation/Available-Snapshot-Strategies.md#plist) representations.
/// A pixel-diffing strategy for UIImage that allows customizing how precise the matching must be.
10
10
///
11
11
/// - Parameter precision: A value between 0 and 1, where 1 means the images must match 100% of their pixels.
12
+
/// - Parameter scale: Scale to use when loading the reference image from disk. If `nil` or the `UITraitCollection`s default value of `0.0`, the screens scale is used.
0 commit comments