GithubHelp home page GithubHelp logo

isabella232 / httrmock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r-lib/httrmock

0.0 0.0 0.0 52 KB

Mock HTTP requests, WORK IN PROGRESS, DO NOT USE IT!

License: Other

Makefile 0.46% R 99.54%

httrmock's Introduction

httrmock

Mock HTTP Requests for API Testing

Linux Build Status Windows Build status CRAN RStudio mirror downloads

Mock HTTP Requests for API Testing

Installation

Once on CRAN, install the package as usual:

install.packages("r-lib/httrmock")

Introduction

TODO

httrmock was inspired by https://github.com/assaf/node-replay

Usage in packages:

TODO

The database:

httrmock uses the storr package to store the requests and responses in RDS files, see storr::storr(). By default the database is in the tests/testthat directory, which is appropriate for testthat tests. For an alternative directory, set the HTTRMOCK_STORE environment variable and point it to the directory you wish to use. The directory will be created if it does not exist.

Debugging:

httrmock uses debugme for easy debugging of what is recorded and replayed, see debugme::debugme() for details.

License

MIT © Gábor Csárdi, RStudio

httrmock's People

Contributors

gaborcsardi avatar lpmi-13 avatar jason-p-pickering avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.