# How to add description to failed unit tests?

**URL:** <https://discourse.julialang.org/t/how-to-add-description-to-failed-unit-tests/40107>\
**Category:** General Usage\
**Tags:** testing\
**Created:** [May 25, 2020, 4:59am UTC](https://discourse.julialang.org/t/how-to-add-description-to-failed-unit-tests/40107 "2020-05-25T04:59:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sloede](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sloede/32/44787_2.png) [@sloede](https://discourse.julialang.org/u/sloede)\
**Post date:** [May 25, 2020, 5:42am UTC](https://discourse.julialang.org/t/how-to-add-description-to-failed-unit-tests/40107/3 "2020-05-25T05:42:02Z")

</div>

> [@virtualgraham](#):
>
> Perhaps put it into a `@testset`

I thought about this too (should’ve put it in the question above), but it does not fit the bill:

- it adds a lot of visual noise even in case of success
- it defies the purpose of a separation into tests and test sets (by adding hundreds of `@testset`s with just a single test in it), especially since the test is really “check for L2 error” and the info on which variable fails is only to help users with tracking down errors faster

Thus I am still looking for alternatives (and/or community input whether this is something to write up as a feature request).

---

_[View the full topic](https://discourse.julialang.org/t/how-to-add-description-to-failed-unit-tests/40107)._
