---
title: "Discussion on \"Hassle free Testing Elixir modules in iEx shell\" | Hashnode"
description: "Discussion on \"Hassle free Testing Elixir modules in iEx shell\". While working on Elixir project, we often test our functions or modules code in iex shell. Whatever change we make in our code, we fire iex -S mix command and all of our project modules are accessible in shell. \nSuppose, we have a module say Calculat..."
url: "https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Hassle free Testing Elixir modules in iEx shell](https://abulasar.com/hassle-free-testing-elixir-modules-in-iex-shell?utm_source=hashnode&utm_medium=feed)

While working on Elixir project, we often test our functions or modules code in iex shell. Whatever change we make in our code, we fire iex -S mix command and all of our project modules are accessible in shell. Suppose, we have a module say Calculat...

Sep 26, 2020 · 2 min read · abulasar.com  
Updated Jun 6, 2025  
Read the article

-   [#elixir](https://hashnode.com/tag/elixir)

## Written by

[AbulAsar S.](https://hashnode.com/@abulasar)

@abulasar · Mumbai, India

  
[View profile](https://hashnode.com/@abulasar)

Elixir |> JS/TS |> C++ |> AI enthusiast

I am a Software Engineer from Mumbai, India. In love with Functional programming ( precisely Elixir). Love to share the knowledge that I learn while developing things.

## Responses 3

Markdown supported · ⌘↵ to post

[Shad Mirza](https://hashnode.com/@iamshadmirza)

[Sep 28, 2020](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3/comment/5f7184b41c510d72d074a1e2)

Very well written [AbulAsar Sayyad](https://hashnode.com/@abulasar)

[AbulAsar S.](https://hashnode.com/@abulasar)

[Sep 28, 2020](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3/comment/5f7184b41c510d72d074a1e2#reply-5f7235f369d7147fb74e7a8b)

Thank you [Mohd Shad Mirza](https://hashnode.com/@iamshadmirza) :)

[Iaam Onkara](https://hashnode.com/@onkara)

[Sep 26, 2020](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3/comment/5f6fa9f75fd46b6601bbf9dc)

so in your example above both types of Calculator will be aliased as Calculator hence the only Calculator you will have access to thru Alias will be Logrithmic one.

Better to do

```
alias Mathematics.Calculator
alias Mathematics.Logrithmic.Calculator, as: LogCalc
```

[AbulAsar S.](https://hashnode.com/@abulasar)

[Sep 26, 2020](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3/comment/5f6fa9f75fd46b6601bbf9dc#reply-5f6fbfc80ba48d6624c91b33)

Ah, thanks for pointing. I randomly added that example. I'll change it. Thanks

[Muhammad Ibrahim Shaikh](https://hashnode.com/@Ibrahim29)

[Sep 26, 2020](https://hashnode.com/posts/hassle-free-testing-elixir-modules-in-iex-shell/5f6ef7eb60599c596c472bd3/comment/5f6ef90b60599c596c472c28)

Wow! This a very well written article on how to use alias. Would you mind if I copy it or embed it in my blog?
