3 ms·
I prefer to think of it as testing how you code behaves when the API returns x, y, or z. It can be a pain to change the mocks and tests when the API changes, b
by brown9-2 17y ago
I prefer to think of it as testing how you code behaves when the API returns x, y, or z.
It can be a pain to change the mocks and tests when the API changes, but what else can you do - not test this layer of your code?
- j_baker 17y agoJust because you don't unit test something doesn't mean you can't test it. This is what integration tests exist for.