Latest #test Threads Top

lud
Hello, I do TDD a lot and so my code, notably my test code, is very often incorrect compared to the current implementation (since the pu...
New
Hermanverschooten
Hi all, Noticed something strange today. Working with Erlang 28.5, Elixir 1.19.5-otp-28. I was working with a new project where I have...
New
mr_smith
Hello there. I’m wondering if people have any tips for doing TDD with Elixir. I am specifically wondering if it is possible to configur...
New
yoavgeva
ArchTest – Architecture rules as tests. Enforced from bytecode. ArchTest is an ArchUnit-inspired architecture testing library for Elixir...
New
jschaeff
Hi all, I think I’ll feel silly when this problem will be pinned down. The tests on my application are suddenly not working anymore. Sa...
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
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
sh1ro966
In my live view test, how can I wait until the asynchronous code ends without putting :timer.sleep(100) after my abcast/2 every time? My...
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

This Week's Trending Top

This Month's Trending Top

lud
Hello, I do TDD a lot and so my code, notably my test code, is very often incorrect compared to the current implementation (since the pu...
New

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
LionelMarco
In previous Phoenix version I have been running test in my database without any sandbox and everyting run well. Because already we have ...
New
yoavgeva
ArchTest – Architecture rules as tests. Enforced from bytecode. ArchTest is an ArchUnit-inspired architecture testing library for Elixir...
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
jschaeff
Hi all, I think I’ll feel silly when this problem will be pinned down. The tests on my application are suddenly not working anymore. Sa...
New
mr_smith
Hello there. I’m wondering if people have any tips for doing TDD with Elixir. I am specifically wondering if it is possible to configur...
New
Hermanverschooten
Hi all, Noticed something strange today. Working with Erlang 28.5, Elixir 1.19.5-otp-28. I was working with a new project where I have...
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
arcanemachine
I’m writing some tests and I want to build a “common language” for writing test tags. I’m using this post to document my findings as I le...
New
Guy14
Hello, After a following several get started tutorials and trying a few things, I’m seriously considering migrating my project to Ash fr...
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
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
i-n-g-m-a-r
How to improve phoenix test coverage? Source $ mix test --cover ...... Generating cover results ... Percentage | Module -----------|--...
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
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
ricksonoliveira
Has anyone by any chance using WSL tried to use open_browser in your tests? I’ve heard one could do something like open_browser(lv, &amp...
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
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
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
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

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
timkonieczny
I’ve been building the follow-along Rumbl app while reading the Programming Phoenix book and ran into some issues testing my channels. Wh...
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
stepchud
I have a problem testing my LiveView that is similar to this post, except that I’m not broadcasting messages via PubSub. In my case, I ha...
New
lccezinha
:phoenix, “~> 1.6.2” :phoenix_live_view, “~> 0.17.5” I am trying to follow this post [Phoenix LiveView] formatting date/time with...
New
baezanat
Hello! I need to test that a Liveview broadcasts a message to a PubSub topic after a redirect. Anybody knows how I could go about testing...
New
New
NatassiaTavares
I’m testing the product_service for my API and I’m getting this error: ** (FunctionClauseError) no function clause matching in Ecto.Chan...
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement