nealrichardson / httptest

A Test Environment for HTTP Requests in R
https://enpiar.com/r/httptest/
Other
79 stars 10 forks source link

Add documentation on how to test for error behavior #43

Open maelle opened 3 years ago

maelle commented 3 years ago

Writing down what I think I understood

In all cases a good package structure seems to help, e.g. in your blog post example having crGET() makes things easier. Also, if one wants to test the exact same function calls in two situations (server up, server down), one might need to play with .mockPaths().

maelle commented 3 years ago

https://github.com/nealrichardson/httptest/issues/40#issuecomment-709436994