6 ms·
You don't want to test external APIs. You probably do want to test how your application behaves in response to using the APIs. One way is to mock the API calls
by tjstankus 15y ago
You don't want to test external APIs. You probably do want to test how your application behaves in response to using the APIs. One way is to mock the API calls with canned responses. Another way is to use a tool like VCR (https://github.com/myronmarston/vcr https://github.com/myronmarston/vcr) to record and playback API interactions.