Closed durtal closed 8 years ago
Not sure how to test a package like this which requires authentication, but can probably use testthat to test that requests are correctly formatted.
testthat
Other packages to look at for testing
gistr
googlesheets
rgbif
rstudioapi
I will add others when I find them, but these are packages which should serve as good examples of how testing an API package like betfaiR should be carried out. Read Hadley on testing
betfaiR
Started adding simple tests that look at requests
Tests for helper functions
Not sure how to test a package like this which requires authentication, but can probably use
testthat
to test that requests are correctly formatted.Other packages to look at for testing
gistr
googlesheets
rgbif
rstudioapi
I will add others when I find them, but these are packages which should serve as good examples of how testing an API package like
betfaiR
should be carried out. Read Hadley on testing