Latest #test Threads 
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
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
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
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
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
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
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
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
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
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
This Month's Trending
This Year's Trending
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
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
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
Background
I am using excoveralls in an umbrella project with several children.
I have set up the children to use Excoveralls like this:...
New
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
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
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
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
I’m currently trying to tests file upload functionality for multiple files, here is a snippet of the code in a form
files =
...
New
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
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
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
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
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
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
Background
I have an umbrella project with several apps.
Some of these apps have runtime libraries as dependencies, some apps depend on ...
New
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
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
Hi,
I guess I do not understand how ElixirLS works.
Test code:
defmodule MyApp do
def hello do
default(1)
end
@spec default...
New
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
Im doing integration tests in my test database if my logic saves the correct records. Although im running pool: Ecto.Adapters.SQL.Sandbox...
New
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
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
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
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
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
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
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
Why would you choose Protocol/Promox over Behaviour/Mox?
See this blog post for when to use Protocol and when to use Behaviour:
New
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
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
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
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:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #ash-questions
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #discussion
- #javascript
- #elixirconf
- #library
- #oban-questions
- #dialyzer
- #docker
- #onsite
- #authentication
- #podcasts
- #full-time-contract
- #umbrella
- #code-sync
- #ecto-query
- #phoenix_html
- #iex
- #graphql
- #genstage
- #elixir-ls
- #nerves-questions
- #podcasts-by-brainlid
- #supervisor
- #websockets
- #distillery
- #advent-of-code
- #blog-post
- #livebook-questions
- #processes
- #forms
- #api
- #metaprogramming







