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
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
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 ![]()
Last Post!
funboy
I already asked at the very beginning, but instead of answer I was getting allegations ![]()
but thank u for answering it anyway ![]()
that’s was never my statement - but I see u guys know better - thank u for discussion ![]()
Popular in Discussions
Other popular topics
Chat & Discussions>Discussions
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










