Latest #testing Threads 
Ever struggled with mocking external HTTP services in Elixir tests? Found yourself writing brittle mocks that don’t catch real-world enco...
New
The Issue of Enums in Elixir
Elixir doesn’t have a native enum construct, so we usually rely on atoms, strings, or macros to represent na...
New
A tip for my future self!
When testing LiveViews, it is often useful to test what happens on socket disconnection-reconnection. This cyc...
New
Hello Elixir community! :wave:
I’m excited to announce the first release of ReqCassette, a VCR-style record-and-replay library specifica...
New
Elixir has potentially great support for Behavior Driven Development and writing tests in the well-known Gherkin language, but online sea...
New
I recently ran into a tricky error while testing a GenServer that uses a mock in its init/1.
Maybe this helps others, or maybe someone h...
New
Hi everyone,
I’m running into an issue when using a dynamic repository in my tests, and I’m trying to understand why the sandbox behaves...
New
I’ve got an annoying problem on my hands. I’m open to a different approach as well.
I’m writing a GenServer to store a live auction, whe...
New
I’m making HTTP requests from inside a Poolboy pool.
I’m having a hell of a time trying to use Req.Test stubs in ExUnit in an e2e workfl...
New
Thinking Elixir 260: Cheaper testing with AI?
Episode 260 of Thinking Elixir. News includes LiveDebugger v0.3.0 with enhanced debugging ...
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
Testcontainers
Testcontainers is an Elixir library that supports ExUnit tests, providing lightweight, throwaway instances of common datab...
New
PhoenixTest provides a unified way of writing feature tests – regardless of whether you’re testing LiveView pages or static pages.
It al...
New
Efx is a library to define and test side effects declaratively. It is basically a very focused mocking framework, reducing implementation...
New
Hi,
I am happy to release the Repatch library for mocking and patching implementation in tests and anywhere else. It brings new possibili...
New
Background
I have an umbrella project, where I run mix test from the root.
In one of the apps, I am mocking the File module using the Mo...
New
I think scala testing libraries has an operator for tests that checks some condition eventuallt evaluates to true (with an implicit timeo...
New
I wonder if it’s possible to mimic a simple “class reopening”/inhertinace-based SEAM in Elixir to alter a module’s behaviour without edit...
New
Hello Elixir community! :wave:
I’m excited to announce the first release of ReqCassette, a VCR-style record-and-replay library specifica...
New
The Issue of Enums in Elixir
Elixir doesn’t have a native enum construct, so we usually rely on atoms, strings, or macros to represent na...
New
Ever struggled with mocking external HTTP services in Elixir tests? Found yourself writing brittle mocks that don’t catch real-world enco...
New
Elixir has potentially great support for Behavior Driven Development and writing tests in the well-known Gherkin language, but online sea...
New
I’ve got an annoying problem on my hands. I’m open to a different approach as well.
I’m writing a GenServer to store a live auction, whe...
New
I’m making HTTP requests from inside a Poolboy pool.
I’m having a hell of a time trying to use Req.Test stubs in ExUnit in an e2e workfl...
New
Hi everyone,
I’m running into an issue when using a dynamic repository in my tests, and I’m trying to understand why the sandbox behaves...
New
Last Three Year's Trending
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
I have this code in my controller
def create(conn, %{"order" => order_params}) do
order_params = get_params(conn, order_params...
New
I have a seed.exs and I want to use it before mix test to seed db and then use that data inside tests. How do I do that?
New
Should it be safe to use Application put/get env in multiple tests ? Assuming I "clean" the env at the setup of each tests, is it possibl...
New
Title says all!
Is it possible to manually mark tests as incomplete or skipped in ExUnit, in the middle of a test case?
New
:wave: Hi there,
I’ve been working on a Test-Driven Development with Phoenix book. It teaches TDD and BDD by building a chat app from th...
New
TL;DR: library to conveniently spawn throwaway docker containers for your integration/functional tests. Not stable yet. Written by an Eli...
New
I’d like to announce Mneme, a snapshot testing tool I’ve been working on.
Docs
Hex
GitH...
New
I have code to do bulk insert which looks like this:
stream = build_attrs_stream()
Repo.transaction(fn ->
stream
|> Stream.ch...
New
I am working on testing a complex function that makes multiple third party API calls. We use [Bypass](https://hexdocs.pm/bypass/Bypass.ht...
New
How do I test some code if a browser session with some user data inside (perhaps from Guardian) is required? How do I get that session da...
New
In some tests, we need to compare 2 structs between each other. However when we build
the test struct: this is done manually
%{
data...
New
Hi all
Can someone please explain me what the tags mean here?
setup tags do
{:ok, conn: Phoenix.ConnTest.build_conn()}
end
Thanks
New
:wave: Hi everyone,
I’ve been posting short Elixir and Phoenix video tips and tricks for a little while on Twitter.
But now, I’ve conso...
New
Hi all,
I recently added a test that mistakenly modified some global state and caused failures in later tests. This failure occurred on ...
New
Trending Over Three Years
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Background
Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
New
Background
I have a test suite and I need to know the coverage of the project.
I have played around with mix test --cover but I find the...
New
Theres a new tool for acceptance testing called Wallaby, I was wondering if anyone has experience with it. I was specifically wondering h...
New
Given these two maps:
map1 = %{a: 1}
map2 = %{a:1, b: 2}
This works fine:
%{a: 1} = map2
But these do not:
iex> ^map1 = map2
*...
New
In order to update a last_seen field when a User leaves their UserChannel, I am starting a GenServer, on join, that monitors the User's U...
New
Hi, I'm in need to test that some process (in my particular case, it's a Phoenix channel) receives some message from another process (via...
New
Hello there!
I have a mix task which grabs some data from a remote API, collects it into a file (a biggish xml), then sucks it in as a ...
New
Background
I have a test file with several describe blocks, each one with a custom setup block, like the following:
defmodule MyAppTest ...
New
Hello
I’m opening this thread to ask some questions about testing practices when dealing with values set at compile time. I’m working w...
New
I can see Logger outputs from my test scripts, but when I add Logger statements into the tested application, these won't show during the ...
New
Is it possible to write a script file that launches the Elixir console, and then compiling files and finally execute a function from a co...
New
Hello,
The module under test depends on three OTP process and thus they're started in test setup callback:
setup do
accounts = Te...
New
I'm not sure if this is the correct way to test an API call in with Absinthe. The code works, but I'm not sure if this is what I should b...
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







