Herve37

Herve37

What API mocking tool are Elixir teams using?

We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using.

We’re particularly interested in:

  • OpenAPI compatibility
  • Mock server capabilities
  • Easy collaboration
  • Integration with testing workflows

What has worked best for your team?

Most Liked

lud

lud

Hello,

What are you trying to mock in elixir? External APIs or your own API?

warmwaffles

warmwaffles

I have been using Sham over Bypass for a while now.

Mimic for quick mocking

Mox occasionally.

When testing with something that uses Req, I just use the built in Req.Test things. Super handy.

funboy

funboy

Why are we so afraid to code against protocols

protocols are about polymorphism based on the struct type, whereas we’re discussing behavior that depends on the environment. For example, in test env we may want to avoid making real HTTP calls or spawning real processes.

Mox is a great fit when you’re abstracting an external dependency behind a behavior. But for testing internal implementations, I find e.g. Mimic much more convenient. It lets you mock internal modules without adding extra behaviors, configuration, or maintenance overhead :sweat_smile:

Last Post!

funboy

funboy

I already asked at the very beginning, but instead of answer I was getting allegations :grimacing:

but thank u for answering it anyway :folded_hands:

that’s was never my statement - but I see u guys know better - thank u for discussion :folded_hands:

Where Next?

Popular in Discussions Top

Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19760 150
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40082 209
New
lucaong
Hello Elixir and Nerves community, I have been working for a while on an open-source embedded key-value database for Elixir, that I call...
230 14362 124
New
eteeselink
Hi all, In the last days, two things happened: A blog post titled “They might never tell you it’s broken” made the rounds. It’s about ...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New

Other popular topics Top

hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31525 112
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement