durtal / betfaiR

R package for the Betfair API
http://durtal.github.io/betfaiR/
Other
18 stars 6 forks source link

write tests #8

Closed durtal closed 8 years ago

durtal commented 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.

Other packages to look at for testing

package link test dir
gistr link tests
googlesheets link tests
rgbif link tests
rstudioapi link tests

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

durtal commented 8 years ago

Started adding simple tests that look at requests

durtal commented 8 years ago

Tests for helper functions