# Customize test failure display

**URL:** <https://discourse.julialang.org/t/customize-test-failure-display/120610>\
**Category:** General Usage\
**Created:** [September 29, 2024, 3:35am UTC](https://discourse.julialang.org/t/customize-test-failure-display/120610 "2024-09-29T03:35:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [September 29, 2024, 6:10am UTC](https://discourse.julialang.org/t/customize-test-failure-display/120610/2 "2024-09-29T06:10:17Z")

</div>

There are a few options listed here:

> [@Define test error message programmatically](https://discourse.julialang.org/t/define-test-error-message-programmatically/116142):
>
> Is there a way for a test to display a custom error message, without giving up on the nice display of numerical values equality / comparison tests? The workaround in [Custom error message from @test macro](https://discourse.julialang.org/t/custom-error-message-from-test-macro/2299) is only a partial solution for this: julia\> using Test julia\> x, y = 1, 2; julia\> msg = "The test failed for this reason: ..."; julia\> @test x == y # numerical values, no message displayed Test Failed at REPL[16]:1 Expression: x == y Evaluated: 1 == 2 ERROR: There was an error during…

---

_[View the full topic](https://discourse.julialang.org/t/customize-test-failure-display/120610)._
