httptest
A Test Environment for HTTP Requests
Testing and documenting code that communicates with remote servers can be painful. Dealing with authentication, server state, and other complications can make testing seem too costly to bother with. But it doesn't need to be that hard. This package enables one to test all of the logic on the R sides of the API in your package without requiring access to the remote service. Importantly, it provides three contexts that mock the network connection in different ways, as well as testing functions to assert that HTTP requests were—or were not—made. It also allows one to safely record real API responses to use as test fixtures. The ability to save responses and load them offline also enables one to write vignettes and other dynamic documents that can be distributed without access to a live server.
- Version4.2.2
- R version≥ 3.5.0
- LicenseMIT
- Licensefile LICENSE
- Needs compilation?No
- Languageen-US
- Last release01/23/2024
Documentation
Team
Neal Richardson
Jonathan Keane
Show author detailsRolesContributorMaëlle Salmon
Insights
Last 30 days
Last 365 days
The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.
Data provided by CRAN
Binaries
Dependencies
- Depends2 packages
- Imports6 packages
- Suggests5 packages
- Reverse Imports2 packages
- Reverse Suggests62 packages