Snapshot Testing for The Composable Architecture in Swift.
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, adding the dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/agescura/snapshot-testing-for-composable-architecture", branch: "main")
]
See Example project or read this entry (in spanish) https://agescura.github.io/snapshot-testing-tca.html
Thanks to Pointfree.co for
- The Composable Arquitecture
- Snapshot Testing
Thanks to Kai Chen solution in https://forums.swift.org/t/is-it-possible-to-assert-snapshot-in-between-teststore-send-and-receive-asserts/36998/5