The Wayback Machine - https://web.archive.org/web/20220201073359/https://github.com/topics/snapshot-testing
Skip to content
#

snapshot-testing

Here are 208 public repositories matching this topic...

bUnit
egil
egil commented Nov 24, 2020

If a component has a child content parameter that is a RenderFragment<TValue>, then the parameter builder's AddChildContent method should throw an exception with an error message telling the user to use .Add(p => p.ChildContent, ...) instead.

For example, the following should throw an helpful exception:

var cut = RenderComponent<Virtualize<string>>(ps => ps
	.Add(p => p.Items, Te
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.

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