
This video is only available to subscribers. Start a subscription today to get access to this and 470 other videos.
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.