Skip to content
#

snapshot-testing

Here are 182 public repositories matching this topic...

NickEntin
NickEntin commented Dec 10, 2020

Specifically the Swift version of the snapshot method in the iOSSnapshotTestCase subspec. The Objective-C version of this behaves correctly.

To reproduce:

func testView() {
    let view = UIView(frame: .init(x: 0, y: 0, width: 100, height: 100))
    SnapshotVerifyWithInvertedColors(view, identifier: "someIdentifier")
}

When run in record mode, this should produce a referen

bradleyjkemp
bradleyjkemp commented May 2, 2018

The built in error message is very opaque (necessary because it has to be generic) but users can likely provide a more helpful friendly message customised to their tests (or e.g. when the diff just isn't useful). Therefore an option to customise this message would be useful.

This would only really be usable once #28 is implemented.

froomzy
froomzy commented Nov 15, 2020

Is your feature request related to a problem? Please describe.
I want to use Syrupy when testing API response bodies. I have nested lists of objects inside my payload. There are values that are returned as part of the nested objects that are not static (eg, created dates, uuids, etc). I am using the path_type matcher to access the nth element of an object, eg "data.0.dateCreated": (str,).

Improve this page

Add a description, image, and links to the snapshot-testing topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the snapshot-testing topic, visit your repo's landing page and select "manage topics."

Learn more