---
title: "Exploring various approaches for testing external calls in Elixir"
url: https://daily.dev/posts/exploring-various-approaches-for-testing-external-calls-in-elixir-fxbvv5bc2
source_url: https://medium.com/wttj-tech/exploring-various-approaches-for-testing-external-calls-in-elixir-4f22e8c8fdae?source=rss----ffa998e8faa---4
type: article
source: "Welcome Tech"
published: 2023-10-02T09:06:23.162Z
updated: 2023-10-04T02:17:27.885Z
tags: ["elixir", "tech-news", "testing"]
reading_time: 8
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Exploring various approaches for testing external calls in Elixir

**[Welcome Tech](https://daily.dev/sources/wttj)** · 8 min read · 0 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/wttj-tech/exploring-various-approaches-for-testing-external-calls-in-elixir-4f22e8c8fdae?source=rss----ffa998e8faa---4>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#elixir](https://daily.dev/tags/elixir), [#tech-news](https://daily.dev/tags/tech-news), [#testing](https://daily.dev/tags/testing)

[View this post on daily.dev](https://daily.dev/posts/exploring-various-approaches-for-testing-external-calls-in-elixir-fxbvv5bc2)
