-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
# swift-snapshot-testing-dump | ||
|
||
A plugin for `swift-snapshot-testing` that combines it with `swift-custom-dump` to be able to produce textual snapshots of model objects. | ||
A plugin for [swift-snapshot-testing](https://github.com/pointfreeco/swift-snapshot-testing) that combines it with [swift-custom-dump](https://github.com/pointfreeco/swift-custom-dump/) to be able to produce textual snapshots of model objects. | ||
|
||
### Usage | ||
|
||
Swift Package Manager | ||
|
||
If you want to use SnapshotTesting in any other project that uses SwiftPM, add the package as a dependency in Package.swift: | ||
|
||
``` | ||
dependencies: [ | ||
.package( | ||
url: "https://github.com/tahirmt/swift-snapshot-testing-dump", | ||
from: "1.0.0" | ||
), | ||
] | ||
``` | ||
Next, add `SnapshotTestingDump` as a dependency of your test target: | ||
|
||
``` | ||
targets: [ | ||
.target(name: "MyApp"), | ||
.testTarget( | ||
name: "MyAppTests", | ||
dependencies: [ | ||
"MyApp", | ||
.product(name: "SnapshotTestingDump", package: "swift-snapshot-testing-dump"), | ||
] | ||
) | ||
] | ||
``` |