Test Doubles in Swift: Dummies, Fakes, Stubs, and Spies.
An overview of the different kind of doubles we can use in our tests, and how to write them in Swift. Dummies and fakes can be used as different kinds placeholders. Stubs control the indirect inputs, spies the indirect outputs of a test. And mocks? Well, I'd advice you to avoid them.
Tags: swift, testing, tdd