This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

ntd23
Hi again ppl, I really like the idea of test my private functions, mainly after read this article of @pragdave, but the library that he...
New

Last Three Year's Trending Top

scottming
I work on a very large umbrella project. I did this config in my web app: config :logger, level: String.to_atom(System.get_env("LOGGER...
New
Fl4m3Ph03n1x
Background I am using excoveralls in an umbrella project with several children. I have set up the children to use Excoveralls like this:...
New
JasterV
Hello there! First of all, I am a complete noob when it comes to Elixir, so the answer to this might be super basic but I need some help...
New
shahryarjb
Hello friends, Imagine you want to download a tar file from hex.pm website. I have this function and do not want to install req hex plug...
New
D4no0
I have a project where we do http requests to public domains. I am currently using Mox for testing and following their practices by havi...
New
Alvinkariuki
I’m currently trying to tests file upload functionality for multiple files, here is a snippet of the code in a form files = ...
New
onurozgurozkan
Hi folks, When we run mix test --cover, we see some modules which starts with Inspect.XXX.XXX at cover results. mix test --cover Outpu...
New
blatyo
I’m testing some complex ecto sql builder stuff. So I pass data to generate an ecto query and I want to validate that it produces the rig...
New
kelvinst
When I run mix test --cover in my Phoenix project, I get some files with poor coverage because they are tiny modules with a use Something...
New
markmark206
tl;dr: Can my test send a click to a DOM element that doesn’t have any phx-* bindings, and then evaluate the resulting HTML? One of my ...
New
D4no0
I was wondering how people usually test projects that have to rely heavily on side-effects. Imagine I have a genserver that ingests mess...
New
henriquesati
I’m trying to test my API endpoints that communicate with a docker container SQL. When running insomnia calls, the api behavior is fine, ...
New
Fl4m3Ph03n1x
Background I have an umbrella project with several apps. Some of these apps have runtime libraries as dependencies, some apps depend on ...
New
michell
Hey all, this is my first post in the forum so I apologize upfront if my post doesn’t comply with the policies. I’m a DevOps engineer an...
New
FarhanSyedain
Here is my primary test file ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Core.Repo, :manual) Faker.start() defmodule ChatBackendT...
New

Trending Over Three Years Top

TwistingTwists
I can think of a way to quickly test a few functions I wrote by writing an .exs file and then running it with mix run path/to/file.exs to...
New
lud
Hi, I guess I do not understand how ElixirLS works. Test code: defmodule MyApp do def hello do default(1) end @spec default...
New
LauraBeatris
Hi I made a unit test in order to compare two lists but it’s returning the following error: == Compilation error in file test/prepend_t...
New
zzibert
Im doing integration tests in my test database if my logic saves the correct records. Although im running pool: Ecto.Adapters.SQL.Sandbox...
New
allenwyma
I’m quite stuck at something I thought would be quite straight forward, but it seems maybe this topic hasn’t come up much in my career in...
New
Shakarim
Hello everyone, I’m building an app using mnesia as storage, and I got a some questions: How to correctly test modules which using the...
New
otuv
Hi, I’m trying to make an assertion that an item has recieved yet another timestamp in a list. My current solution is to do a regular ma...
New
tino415
Hello all, today I had interesting problem in our CI/CD pipeline. We set up pipeline so in one container was run mix deps.get, MIX_ENV=t...
New
benonymus
Hey, I am using this mocking library: and I am experience something weird: I have 2 test cases in 2 different folders in the test fol...
New
chwajeeh
HI, i am running my integration test in terminal and got this error… ** (EXIT from #PID<0.8019.0>) an exception was raised: ** (A...
New
mcrunix
Hi Folks, I’m using Gitlab Ci for a Phoenix project but there’re some commands before running mix test command, at the moment every job ...
New
dimitrije
Hi all, I need help on how to not execute a function in test environment. I have a function which is a background supervised task which...
New
amnu3387
This is more of curiosity than something utterly needed but would be great if there was a not overly hacky way of accessing them? Basica...
New
Karemy
Hello, greetings to all, I need your support. When doing a push in git the tests are executed, but when uploading it throws me the follow...
New
fchabouis
Hi, I tried the mix test --cover command and was surprised to see included in the results coverage analysis of the dependencies I use. ...
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