Improving the Testability of CLLocationManager

It is common to find difficulties with the response of methods that are not ours when we write class tests that have external dependencies. Let’s see a typical case in mobile development where we can find this problem and find out how we can improve the testability of our CLLocationManager.

Improving the Testability of CLLocationManager

We have developed an app with a map that uses the location services of Apple’sCoreLocation to obtain the user’s location.