πŸ“ˆ Unit Testing in Swift: Mocking

Kewin
3 min readJul 9, 2020

Welcome to the fourth part of the Unit Testing in Swift series!
In this article we will look into implementing custom mock classes to be in complete control of your code while unit testing. If you are new to unit testing and want to learn how to start unit testing with Swift in Xcode, I suggest you take a step back to Part 1: The Fundamentals of the series, before reading further. And if you are wondering why mocking is even…

--

--

Kewin

Lead iOS Engineer @ Jabra πŸ‡©πŸ‡° Full time πŸ’»πŸ“² β€” part time β€πŸŠπŸΌπŸš΄πŸΌπŸƒπŸ»β›·βš½οΈ