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
The example project exists at Example-SPM
however it is not necessary.
Swift 5.9 or later for swift package manager
For swift package manager
.package(url: "https://github.com/tahirmt/Nimble-SnapshotTesting.git", from: "4.0.0"),
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)
Nimble-SnapshotTesting is available under the MIT license. See the LICENSE file for more info.