Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

A plugin to use swift-custom-dump with swift-snapshot-testing

License

Notifications You must be signed in to change notification settings

tahirmt/swift-snapshot-testing-dump

Repository files navigation

swift-snapshot-testing-dump

Note: This plugins is now deprecated. Please use SnapshotTestingCustomDump library directly from swift-snapshot-testing. For more details refer to the original pull request

A plugin for swift-snapshot-testing that combines it with 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"),
    ]
  )
]

About

A plugin to use swift-custom-dump with swift-snapshot-testing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages