# How to use @test\_warn?

**URL:** https://discourse.julialang.org/t/how-to-use-test-warn/15557
**Category:** General Usage
**Tags:** question
**Created:** [September 27, 2018, 1:11pm UTC](https://discourse.julialang.org/t/how-to-use-test-warn/15557 "2018-09-27T13:11:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [September 27, 2018, 1:25pm UTC](https://discourse.julialang.org/t/how-to-use-test-warn/15557/2 "2018-09-27T13:25:29Z")

</div>

See [@test\_warn doesn't work with @warn in 0.7](https://discourse.julialang.org/t/test-warn-doesnt-work-with-warn-in-0-7/9001). TL;DR: Use `@test_logs` instead.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-use-test-warn/15557)._
