How do I write Elixir tests?

Depends what external services we are talking about. In many cases instead of mocking I prefer writing stub. So for HTTP services I will run local HTTP service that I can point to, for DNS service I will implement simple resolver that runs locally. And so on.

1 Like