rOpenSci | Using vcr for HTTP testing of a package for Kobotoolbox
Reported on: Mar 24, 2022

Using vcr for HTTP testing of a package for Kobotoolbox

English • By Frie • Featuring: vcr, http testing book

rOpenSci package or resource used*

What did you do?

We - a couple of volunteers from data4good network CorrelAid developed a wrapper for the API of Kobotoolbox, a data collection tool widely used in humanitarian aid. For testing the package functions, we used the vcr package and the HTTP testing book.

URL or code snippet for your use case*

https://github.com/correlaid/kbtbr

Disclaimer: while we were developing, another package for the exact same purpose was published which is maybe better than ours (e.g. it uses labelled to store question labels as well): https://gitlab.com/dickoa/robotoolbox :)

Sector

non-profit

Field(s) of application

humanitarian, non-profit