This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

Trending Over Three Years Top

abratashov
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
itssasanka
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
doodloo
Consider the following scenario: A Normalizer behaviour with a normalize_email function. A User module, with a changeset function that ...
New
xgeek116
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
gmile
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
Odysseus
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
xgeek116
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
Mukulch15
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
softodrom
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement