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

Use {httptest} for mocking web requests in unit tests #6

Open
dmi3kno opened this issue Jul 9, 2018 · 0 comments
Open

Use {httptest} for mocking web requests in unit tests #6

dmi3kno opened this issue Jul 9, 2018 · 0 comments

Comments

@dmi3kno
Copy link
Owner

dmi3kno commented Jul 9, 2018

If decided to stay with httr, look at httptest
(alternative is to switch to crul and then use webmockr and vcr for testing API responses, see #4 )

By Maelle:

This thread about testing API packages on rOpenSci forum also mentions https://enpiar.com/r/httptest/ so you could use that and keep httr.

@dmi3kno dmi3kno changed the title http testing infrastructure Use {httptest} for mocking web requests Jul 9, 2018
@dmi3kno dmi3kno changed the title Use {httptest} for mocking web requests Use {httptest} for mocking web requests in unit tests Jul 9, 2018
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