Testing with Resolver

Episode #461 | 22 minutes | published on September 15, 2020 | Uses Swift-5.3, Xcode-12-beta6, Resolver-1.1.4
Subscribers Only
One of the benefits we can get by programming to protocols and leaving our concrete implementations isolated, is that we enable swapping out these dependencies for different ones for use during tests. Doing so will require us to restructure our app setup a bit so we can have a completely separate AppDelegate and SceneDelegate for use in testing. With this setup we can control the environment completely. We'll setup mock dependencies that we can verify that the interaction with these dependencies is as expected.

Episode Links

blog comments powered by Disqus