How to mock an Apple built-in class
The MKMapItem class is an Apple built-in class. How do I make sure the openInMaps(launchOptions:) method is being invoked on MKMapItem when I test the displayRo...
The MKMapItem class is an Apple built-in class. How do I make sure the openInMaps(launchOptions:) method is being invoked on MKMapItem when I test the displayRo...
As you start writing your first few unit tests, this is how you’re going to feel. You’re testing a class, then you need to stub out some other class, and some m...
In my last post, you learned how to test your presenter and format data properly for display. We also introduced a new displayFetchedOrders() method in the view...
In part 1 and part 2, you tested the ListOrdersViewController and ListOrdersInteractor, respectively. But we left it kind of hanging because we mocked out the O...
I’ve written a book to teach you how to write unit tests effectively. If you want to make your tests fast so you’ll actually run them and run them often to rece...