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...
Every beginning iOS developer learns to build their first app using MVC because that’s the way it is taught in guides and tutorials. But as the app evolves out ...
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...
As I added new scenes and wrote new unit tests for Clean Swift Xcode templates v2, creating test data manually becomes very tedious. There’s got to be a better ...
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...