Mock-free unit tests in Swift — Swift by Sundell
www.swiftbysundell.comWhen getting started with unit testing, it usually doesn't take long to realize that some form of mocking is needed. Although mocking will most likely remain essential for many types of testing, there are also many cases where avoiding mocks can lead to much simpler code - both in terms of testing and actual production code. John Sundell takes a look at some of those cases, and a few different ways to write mock-free unit tests in Swift.
Read more...