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

Allow offline testing with a centralised mock function #68

Closed
MarkEdmondson1234 opened this issue Jun 4, 2017 · 1 comment
Closed

Comments

@MarkEdmondson1234
Copy link
Owner

MarkEdmondson1234 commented Jun 4, 2017

https://github.com/n-s-f/mockery
https://github.com/gaborcsardi/httrmock
https://github.com/ropensci/vcr

https://discuss.ropensci.org/t/best-practices-for-testing-api-packages/460/8

Don't test that API, test the functions. Some way to test what the JSON, URL etc. is sent by a googleAuthR API call, recording one successful version then keeping that in a file for comparison in unit tests.

@MarkEdmondson1234
Copy link
Owner Author

Carried on in #69

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

No branches or pull requests

1 participant