This Week's Trending
This Month's Trending
This Year's Trending
Last Three Year's Trending
Trending Over Three Years
Tell me please how to mock/stub methods of Repo module for my tests?
For ex.:
link = Repo.get_by(Link, short_url: url)
db_count = Rep...
New
Hi,
I am using mocking in my unit tests in my code. My mocks are however, injected through Application config,
For example, if Applicat...
New
Consider the following scenario:
A Normalizer behaviour with a normalize_email function.
A User module, with a changeset function that ...
New
I’m using using mox to help me with my unit testing (for now, I want to mock a function that fetches external API).
my mix.exs :
{:mox,...
New
It appears I am doing something off, as after mocking a module using mock, the module is completely unloaded from memory and subsequent c...
New
Hello, I’m trying to test some code that fires off multiple external API calls in parallel using Task.async_stream(). I’m using Mox to mo...
New
I’m testing a function that call another function to fetch external data using API calls, here is the main module code :
defmodule MyApp...
New
I have a function that calls a paginated list api multiple times, accumulates the result and then returns it. I have implemented it as a ...
New
Hi,
I am trying to mock a module behavior inside my LocalCluster using :erpc and mox libraries. Is this the correct way to do it, as I s...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Sub Categories:
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
- #javascript
- #podcasts
- #code-sync
- #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
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








