First choice for Swift test doubles: inject a protocol. But sometimes the signature is out of your hands. That's when a partial mock earns its place, as a careful exception. Here's how to do it well: https://qualitycoding.org/swift-partial-mock/ #SwiftLang #UnitTesting
1 Boost
0 Likes
No replies yet
Be the first to share your thoughts.