This Week's Trending
This Month's Trending
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
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
In previous Phoenix version I have been running test in my database without any sandbox and everyting run well.
Because already we have ...
New
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
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
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
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
Hello,
After a following several get started tutorials and trying a few things, I’m seriously considering migrating my project to Ash fr...
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 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
How to improve phoenix test coverage?
Source
$ mix test --cover
......
Generating cover results ...
Percentage | Module
-----------|--...
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
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
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, &...
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
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 currently trying to tests file upload functionality for multiple files, here is a snippet of the code in a form
files =
...
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 looking at the code for mix phx.gen.auth and I’ve seen that only part of the test files generated use async: true. For example, Confi...
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
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
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 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
:phoenix, “~> 1.6.2”
:phoenix_live_view, “~> 0.17.5”
I am trying to follow this post [Phoenix LiveView] formatting date/time with...
New
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
Hello guys I’m trying mock a function that is executed when I call my endpoint (In the middle of all code).
But when I call my endpoint ...
New
I’m testing the product_service for my API and I’m getting this error:
** (FunctionClauseError) no function clause matching in Ecto.Chan...
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
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:
Sub Categories:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







