Latest #test Threads Top

volcov
Hello, How is everyone? I hope you’re well =) I worked on a project with some legacy code that existed before Oban’s arrival. This leg...
New
dimamik
We have a few thousand tests in our suite, and we started getting OOM errors from our CI. Is there a way to order tests by RAM consumptio...
New
kecatan914
I just encountered the problem of introducing tests with things like mox when using async. There is any way to have mocks at the tests an...
New
henriquesati
I want to test a endpoint that makes external api calls. What I want to do is to only do this external api call once (generate a payload)...
New
henriquesati
what I want to achieve is: execute a test to registry a record using a given payload execute another test with the same payload to thro...
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 am trying to do an integration test for a simple terminal application that I am writting. This application is basically a S...
New
budgie
Swoosh is mucking with a few of my tests. It looks like there is no configurability in the test adapter to change the behavior and get it...
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
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

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
volcov
Hello, How is everyone? I hope you’re well =) I worked on a project with some legacy code that existed before Oban’s arrival. This leg...
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
eclark
Heyya is a library to help with testing your Phoenix components. It allows for writing fast tests that assert your HTML is consistent and...
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

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
dsdshcym
Why would you choose Protocol/Promox over Behaviour/Mox? See this blog post for when to use Protocol and when to use Behaviour:
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
simonprev
factori is a library to generate fake data for your tests based on your database schema. Instead of having to implement a Faker mapper f...
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement