3 ms·
Still a bit flaky. In an OOP language mocking is appropriate or in an FP language defunctionalization.
by tinyspacewizard 4y ago
Still 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.