pachadotdev / analogsea

Digital Ocean R client
https://pacha.dev/analogsea/
Apache License 2.0
154 stars 24 forks source link

Add tests to package #148

Closed sckott closed 2 years ago

sckott commented 6 years ago

There's just a few tests right now, only those that don't test against actual interactions with Digitalocean.

Here's what I think could be the approach for each function:

  1. Right now, we can add tests of failure behavior and any other thigns that don't test against requests to Digitalocean - see current tests for examples
  2. Start on testing real functionality of functions, but with mocked data. This may have to take different approaches with different functions. For spaces functions that wrap aws, those internally use httr. For other functions, I can convert internal use of httr to crul and then we can use vcr package I'm working on for caching requests for tests - should be ready to go soon.