httptest2: Test Helpers for 'httr2'

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.

Package details

AuthorNeal Richardson [aut, cre] (<https://orcid.org/0009-0002-7992-3520>), Jonathan Keane [ctb], Maëlle Salmon [ctb] (<https://orcid.org/0000-0002-2815-0399>)
MaintainerNeal Richardson <neal.p.richardson@gmail.com>
LicenseMIT + file LICENSE
Version1.1.0
URL https://enpiar.com/httptest2/ https://github.com/nealrichardson/httptest2
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("httptest2")

Try the httptest2 package in your browser

Any scripts or data that you put into this service are public.

httptest2 documentation built on May 29, 2024, 8:42 a.m.