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.


News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("httptest2")

0.1.0 by Neal Richardson, 18 days ago


https://enpiar.com/httptest2/, https://github.com/nealrichardson/httptest2


Report a bug at https://github.com/nealrichardson/httptest2/issues


Browse source code at https://github.com/cran/httptest2


Authors: Neal Richardson [aut, cre] , Jonathan Keane [ctb] , Maƫlle Salmon [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports digest, httr2, jsonlite, rlang, stats, testthat, utils

Suggests curl, knitr, pkgload, rmarkdown, spelling, xml2


See at CRAN