2 ms·
I think the sane half-way point is to hide external integrations behind a facade that you can mock for unit tests and then you verify those assumptions with pro
by christkv 4y ago
I think the sane half-way point is to hide external integrations behind a facade that you can mock for unit tests and then you verify those assumptions with proper integration tests.
- geraldwhen 4y agoI don’t want to find bugs in a deployed environment. The more real code paths my tests hit, the less likely that is to happen. I’ve found numerous bugs in infernal apis by being one of the only teams to prefer or even use integration tests.
- nijave 4y agoYeah and the real implementation you can still do a full integration test with the real backend (send a request to a web API) if you want but limit runs to only times the facade changes
- hynek 4y agoWhich is…precisely what the article is saying!?