# Some Elixir Testing Tricks

**URL:** <https://forum.devtalk.com/t/some-elixir-testing-tricks/112968>\
**Category:** Blogs/Articles/Talks/Podcasts\
**Tags:** elixir, testing, blog-post\
**Created:** [15 June 2023 13:06 UTC](https://forum.devtalk.com/t/some-elixir-testing-tricks/112968 "2023-06-15T13:06:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paradox](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paradox/32/5145_2.png) [@Paradox](https://forum.devtalk.com/u/Paradox)\
**Post date:** [15 June 2023 13:06 UTC](https://forum.devtalk.com/t/some-elixir-testing-tricks/112968/1 "2023-06-15T13:06:38Z")

</div>

Testing is an important part of any modern piece of software. But writing tests can quickly become an exercise in frustration, with tons of repeated code, duplicate setup routines, and cumbersome assertions. ExUnit, Elixir’s testing framework, is ultimately just pure Elixir, and so we can extend it using more elixir features. Isolated setup units that can be mixed and matched, configuration via tags, and custom assertions are trivial to add to a test suite, and can save tons of developer headache

> **[Some Elixir Testing Tricks](https://pdx.su/blog/2023-06-14-some-elixir-test-tricks/)**
>
> Testing in Elixir is pretty great. ExUnit, combined with the functional nature of Elixir, makes it very easy to test almost everything in your codebase. However, it is very easy for boilerplate to creep into your tests. Common setup patterns, similar...
