Episode #461

Testing with Resolver

22 minutes
Published on September 15, 2020

This video is only available to subscribers. Get access to this video and 573 others.

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.

This episode uses Swift 5.3, Xcode 12-beta6, Resolver 1.1.4.