Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Location Procedures Testable in client code #865

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

ericyanush
Copy link
Contributor

This PR exposes the ability for client code to inject mock LocationFetcher (CLLocationManager), and ReverseGeocoder (CLGeocoder) into location procedures.

This is necessary to allow any client code that depends on or uses, especially in GroupProcedures, a procedure from ProcedureKitLocation. Without these changes, client code is subject to the state of the device/simulator during unit tests, making it impossible to validate behaviour when location services is disabled, no location is available, etc.

Eric Yanush added 3 commits July 4, 2018 11:38
…or testability

These changes enable framework clients to test code / procedures that are dependant upon location procedures without relying on an actual CLLocationManager instance.
@danthorpe
Copy link
Member

Hi @ericyanush will look at this asap. Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants