Skip to content

A helper library to create a Nimble matcher for swift-snapshot-testing framework

License

Notifications You must be signed in to change notification settings

tahirmt/Nimble-SnapshotTesting

Repository files navigation

Nimble-SnapshotTesting

CI

A Nimble matcher for https://github.com/pointfreeco/swift-snapshot-testing inspired from the work in https://github.com/ashfurrow/Nimble-Snapshots and https://github.com/Killectro/swift-snapshot-testing-nimble

Example

The example project exists at Example-SPM however it is not necessary.

Requirements

Swift 5.9 or later for swift package manager

Installation

For swift package manager

.package(url: "https://github.com/tahirmt/Nimble-SnapshotTesting.git", from: "4.0.0"),

Usage

To use the library with Nimble you have two ways

let view = UIView()
expect(view).to(haveValidSnapshot(as: .image))

or you can even use the == syntax

let view = UIView()
expect(view) == snapshot(as: .image)

License

Nimble-SnapshotTesting is available under the MIT license. See the LICENSE file for more info.

About

A helper library to create a Nimble matcher for swift-snapshot-testing framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •