Testing an API wrapper with webmockr and vcr

Tags: #<Tag:0x00007fc004cd5778> #<Tag:0x00007fc004cd5660> #<Tag:0x00007fc004cd5598> #<Tag:0x00007fc004cd54d0>

rOpenSci package or resource used*

webmockr and vcr with the HTTP testing book. This question on ROpenSci helped me discover the tools.

What did you do?

I tested the dev.to api wrapper I wrote. I used webmockr to create stubs to the apis, and vcr to record the API response to a local disk for testing purposes. I wrote it up here.

URL or code snippet for your use case*

My code is on GitHub

Sector

Hobby

Field(s) of application

Data exchange

Comments

Extend the getting started documention, which I am helping to work on in this GitHub issue

Twitter handle

@DaveParr

5 Likes

I was already very excited about your package, now Iā€™m even more excited because it uses webmockr and vcr. :grinning:

2 Likes