httptest2: Test Helpers for 'httr2' (original) (raw)
Testing and documenting code that communicates with remote servers can be painful. This package helps with writing tests for packages that use 'httr2'. It enables testing all of the logic on the R sides of the API without requiring access to the remote service, and it also allows recording real API responses to use as test fixtures. The ability to save responses and load them offline also enables writing vignettes and other dynamic documents that can be distributed without access to a live server.
| Version: | 1.2.2 |
|---|---|
| Imports: | digest, httr2 (≥ 0.2.0), jsonlite, rlang, stats, testthat (≥ 3.1.5), utils |
| Suggests: | curl, knitr, pkgload, rmarkdown, spelling, webfakes, xml2 |
| Published: | 2025-11-16 |
| DOI: | 10.32614/CRAN.package.httptest2 |
| Author: | Neal Richardson |
| Maintainer: | Neal Richardson <neal.p.richardson at gmail.com> |
| BugReports: | https://github.com/nealrichardson/httptest2/issues |
| License: | MIT + file |
| URL: | https://enpiar.com/httptest2/,https://github.com/nealrichardson/httptest2 |
| NeedsCompilation: | no |
| Language: | en-US |
| Materials: | README, NEWS |
| CRAN checks: | httptest2 results |
Documentation:
Downloads:
Reverse dependencies:
| Reverse suggests: | allcontributors, ARDECO, biomaRt, comtradr, congress, consibiocloudclient, f1dataR, feltr, forcis, gptzeror, gtexr, hackeRnews, happign, healthatlas, insight, LLMR, microinverterdata, mmequiv, mregions2, nixtlar, osmapiR, osmdata, planscorer, r311, redlist, restatis, riem, Rigma, rirods, rlandfire, rosv, sigugr, socratadata, tidyllm |
|---|
Linking:
Please use the canonical formhttps://CRAN.R-project.org/package=httptest2to link to this page.