2 ms·
> real clients, faked services I'm curious what you think this looks like in practice. I've had success with these kinds of tests, but only for very simple ext
by jniedrauer 6y ago
> real clients, faked services
I'm curious what you think this looks like in practice. I've had success with these kinds of tests, but only for very simple external services. For example, writing a fake elasticsearch backend for a few known inputs and outputs might be a good fit. But what about an RDBMS? You can't realistically write a mock backend that can talk to a real client.
- lxe 6y agoAs much as it's reasonable, of course. If it's impossible to spin up a mock service or a DB, then client fakes can be used at the cost of narrowing the test's coverage and lowering authoritativeness.