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

mbenatti
Following https://github.com/tbrand/which_is_the_fastest |> https://raw.githubusercontent.com/tbrand/which_is_the_fastest/master/imgs...
New
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
lorenzo
Hey everone! I created a prototype for my app using Nodejs for the api. But the framework I chose wasnt great (in general theresnt any g...
New
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
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
crispinb
On reading dhh’s latest The One Person Framework it strikes me that Phoenix with LiveView is already pretty much this. However, never hav...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
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
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement