Snapshot Testing for The Composable Architecture in Swift
snapshot-testing-for-composable-architecture
Snapshot Testing for The Composable Architecture in Swift.
Installation
Swift Package Manager
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")
]
Use
See Example project or read this entry (in spanish) https://agescura.github.io/snapshot-testing-tca.html
Agreements
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