Latest #exunit Threads 
I wanted to write down some of the main guides I use when writing Elixir tests, so I have summarised them in blogpost.
Furthermore, I th...
New
Hi !
We just stumbled upon this warning: “warning: the following files do not match any of the configured `:test_load_filters` / `:test_...
New
I am working for ArangoDB, a multi-model database implemented in C++. We have a huge number of integration/system tests that are written ...
New
Why 100% code coverage is a misleading metric and a false sense of security.
New
Hey!
Just wanted to share my ExUnit NeoVim plugin: GitHub - aerosol/nvim-exunit: Opinionated ExUnit test runner for NeoVim · GitHub
The...
New
I’ve published CaptureLogger 1.0, a very light modification to ExUnit.CaptureLogger (mostly to ExUnit.CaptureServer) that supports passin...
New
Coworker and I are at an impasse and would appreciate the community’s vote to resolve it. :slight_smile:
poll
Elixir’s test-runner has a...
New
I am trying to run a parameterize’d test with both a :group set and async: true.
The ExUnit docs state: “If both :async and :parameteriz...
New
Use IEx before ExUnit, don’t test private functions, test what matters, test the contracts, avoid dogma
New
Hi everyone!
I need make a controller tests to validate mandatory fields. In this case the tests is the same for all fieds and the valid...
New
This Week's Trending
This Month's Trending
This Year's Trending
Title says all!
Is it possible to manually mark tests as incomplete or skipped in ExUnit, in the middle of a test case?
New
Testcontainers
Testcontainers is an Elixir library that supports ExUnit tests, providing lightweight, throwaway instances of common datab...
New
Is anyone using any sort of tool to produce machine readable output from exunit when using GitHub actions?
In the past with CircleCI I’v...
New
An ExUnit formatter to visualize test execution and find bottlenecks in your test suite.
I created a small library called ex_unit_spa...
New
SeedFactory - a toolkit for test data generation
GitHub | docs | Hex.pm
The main idea of SeedFactory is to generate test data by calling...
New
I wanted to write down some of the main guides I use when writing Elixir tests, so I have summarised them in blogpost.
Furthermore, I th...
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
Hey!
Just wanted to share my ExUnit NeoVim plugin: GitHub - aerosol/nvim-exunit: Opinionated ExUnit test runner for NeoVim · GitHub
The...
New
Use IEx before ExUnit, don’t test private functions, test what matters, test the contracts, avoid dogma
New
Coworker and I are at an impasse and would appreciate the community’s vote to resolve it. :slight_smile:
poll
Elixir’s test-runner has a...
New
I’ve published CaptureLogger 1.0, a very light modification to ExUnit.CaptureLogger (mostly to ExUnit.CaptureServer) that supports passin...
New
Hi !
We just stumbled upon this warning: “warning: the following files do not match any of the configured `:test_load_filters` / `:test_...
New
I am working for ArangoDB, a multi-model database implemented in C++. We have a huge number of integration/system tests that are written ...
New
Hi,
I would like to introduced allure_test_formatter, the Allure test report for ExUnit using ExUnit Test Formatter. The usage is simple...
New
Hello,
I was trying to figure out why my logger configuration is not used when running the tests with mix test --no-start and a manual a...
New
Last Three Year's Trending
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
Hi,
I have one basic question.
Is there a way to get the list of failed tests at the end of mix test output? Do you have to come up wit...
New
I have a question for people who have been using bypass for testing web requests. How do you handle asynchronous tests where the code mak...
New
Hi everybody,
i have an issue with my test suite. When i run each test separatly, everything is ok but in the whole test suite i have so...
New
Hi Forum,
Has anyone writing doctests found a way to update their examples that produce ArgumentErrors to capture the new multiline form...
New
Hi friends,
I’m working on a contribution to Finch and am having a hell of a time debugging an unexpected process exit that’s causing a ...
New
I need some help to understand writing test for async function
For example I have a function
def send_notification({:ok, nessage}, to, ...
New
I recently encountered an issue where a partial or functional component was re-rendered multiple times, resulting in an inline function c...
New
Let’s say I’m writing a (rather typical) application using Ecto, which heavily relies on a database.
Most features, let’s say, read from...
New
I’m trying to build a protocol and a test suite to implement different adapters (impls of the protocol).
I tried to use a CaseTemplate, ...
New
Our team is having some flaky unit tests that we’re really struggling to track down. Every once in a while a random unit test will time o...
New
Hey guys,
I’m relatively new to Elixir world. Currently I’m working on a GraphQL API with Absinthe. All is going right, I have done some...
New
I’m using the following library: GitHub - elixir-wallaby/wallaby: Concurrent browser tests for your Elixir web apps. · GitHub
However, t...
New
I’d like to get compiler warnings as errors in my tests, because in my experience, such warnings quite often uncover real bugs.
What I’v...
New
Hi!
I have recently created, after having tried to get in touch with the creator of excontainers for quite some time, a new library call...
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 the...
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
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
Background
I have a test file with several describe blocks, each one with a custom setup block, like the following:
defmodule MyAppTest ...
New
Say I have a controller like so.
def create_pass_reset(conn, %{"user" => %{"email" => email}}) do
case Accounts.reset_pass(e...
New
Hello,
The module under test depends on three OTP process and thus they’re started in test setup callback:
setup do
accounts = Test...
New
Is it any similar to mix test --failed?
New
I’m having difficult figuring out how to stop supervisors running genservers during my tests and I haven’t found any helpful guides onlin...
New
Background
I have some code that invokes a given function a certain number of times. I pass this function in the parameters so it is easy...
New
So I have a module that has a private method.
defp encrypt_token(token) do
:crypto.hmac(:sha256, BeffectWeb.Endpoint.config(:secre...
New
Here is the use case that I am trying to solve:
I have a standard test module which has a setup_all method and a describe block.
Now, I...
New
Hi all
I have a Phoenix application that has it’s own Postgres database and also needs to communicate to a read only database on a diffe...
New
I’ve been playing round with test fixtures using setup_all, and I’m considering opening a pull request which includes a few more concrete...
New
It is a well-know topic within the Elixir community: “To mock or not to mock? :)”
Every alchemist probably has his / her own opinion con...
New
Hey All,
I had a quick question regarding ExUnit - it appears to start your application by default which is a different behaviour to EUn...
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
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #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
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








