httptest (3.3.0)

0 users

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.

Maintainer: Neal Richardson
Author(s): Neal Richardson [aut, cre]

License: MIT + file LICENSE

Uses: curl, digest, httr, jsonlite, testthat, knitr, rmarkdown, xml2, covr, spelling, pkgload
Reverse suggests: aiRly, alfr, AlphaVantageClient, bitmexr, briqr, colourlovers, cometr, congressbr, crplyr, crunch, crunchy, datapackage.r, dkanr, echor, edgarWebR, ether, googleAnalyticsR, googleAuthR, googleLanguageR, hackeRnews, httpcache, hystReet, legco, MODIStsp, mstrio, noaaoceans, PetfindeR, pivotaltrackR, portalr, povcalnetR, ProPublicaR, qualtRics, ramlegacy, rGoodData, rnassqs, rnbp, Rpoet, sen2r, sentryR, shutterstock, tidyRSS, zzlite

Released 4 months ago.

13 previous versions



  (0 votes)


  (0 votes)

Log in to vote.


No one has written a review of httptest yet. Want to be the first? Write one now.

Related packages: Rserve, XML, httpRequest, rjson, RCurl, OAIHarvester, RgoogleMaps, sendmailR, twitteR, scrapeR, RJSONIO, imguR, googleVis, factualR, ROAuth, Rook, osmar, whisker, FastRWeb, ggmap(20 best matches, based on common tags.)

Search for httptest on google, google scholar, r-help, r-devel.

Visit httptest on R Graphical Manual.