3 ms·
Hopefully the responses are stored locally and replayed on subsequent runs.
by mollerhoj 4y ago
Hopefully the responses are stored locally and replayed on subsequent runs.
- tinyspacewizard 4y agoStill a bit flaky. In an OOP language mocking is appropriate or in an FP language defunctionalization.
- mollerhoj 4y agoHeh yeah but it can be used to write tests that check your assumptions about a 3 party api. Granted, It'll only fail once the test are rerun without the cache, but it can still be a valuable technique. It can be valuable to have a testsuite that a) helps check assumptions when implementing the connection and b) helps locate what part of it later starts to behave unexpectedly.