-
Notifications
You must be signed in to change notification settings - Fork 70
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
Create test helpers #2
Comments
I'd also like this |
Let's discuss the feature-set for this test helper:
|
So thoughts on this. I think it should be similar to how the Ruby geocoder gem does it. I know this is a Rails example but here is how we implemented stubbing out geolocation request form that gem, its similar concept in that is using a google api service. In this case, we just have two services, apple and google.
For reference, the geolocator test app is here: https://github.com/alexreisner/geocoder_test We could make some improvements I'm sure but might be worth looking at as a good starting point. Also, I think if everything is written where dependency injection is requried ie: fetch libs etc, stubbing out a specific instance shouldn't be hard. It would be nice to be able to set up a 'test' mode which returns some stubbed objects of |
I think this would be a step in the right direction. In detail the gem should not make assumptions about the test framework, but could be instrumented as in the given example. |
It would be nice to streamline testing for candy check so stubbing verification gets easier.
More info to follow.
The text was updated successfully, but these errors were encountered: