This article explores various approaches for testing external calls in Elixir, including monkey patching, using a fake HTTP server, employing mocks with behavior, and utilizing Mox. It discusses the strengths and limitations of each method and emphasizes the importance of testing business logic.

8m read time From medium.com
Post cover image
Table of contents
Exploring various approaches for testing external calls in ElixirPresentation of the use caseTLDR: Summary tableNaive testsMore advanced testingExploring more

Sort: