# Raco test with errortrace

**URL:** <https://racket.discourse.group/t/raco-test-with-errortrace/1505>\
**Category:** Questions & Answers\
**Tags:** raco\
**Created:** [November 22, 2022, 3:45am UTC](https://racket.discourse.group/t/raco-test-with-errortrace/1505 "2022-11-22T03:45:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tehkonst](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/tehkonst/32/802_2.png) [@tehkonst](https://racket.discourse.group/u/tehkonst)\
**Post date:** [November 22, 2022, 3:45am UTC](https://racket.discourse.group/t/raco-test-with-errortrace/1505/1 "2022-11-22T03:45:25Z")

</div>

In docs: [13&nbsp;raco test: Run tests](https://docs.racket-lang.org/raco/test.html) , a flag `--errortrace` is mentioned.

> `--errortrace` — Dynamically loads [errortrace](https://docs.racket-lang.org/errortrace/using-errortrace.html) before running the tests. Note that already-compiled files will not include the tracing information.

But when I launch  
`raco test --errortrace file.rkt`  
it gives me the error:  
`unknown switch: --errortrace`  
Could you tell me how to run `raco test` with `errortrace` enabled?

---

<div class="post-metadata">

**Author:** ![samth](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/samth/32/3_2.png) [@samth](https://racket.discourse.group/u/samth)\
**Post date:** [November 22, 2022, 2:52pm UTC](https://racket.discourse.group/t/raco-test-with-errortrace/1505/2 "2022-11-22T14:52:02Z")

</div>

That option is new in Racket 8.7. Maybe you're using an older version?

---

<div class="post-metadata">

**Author:** ![tehkonst](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/tehkonst/32/802_2.png) [@tehkonst](https://racket.discourse.group/u/tehkonst)\
**Post date:** [November 23, 2022, 3:42am UTC](https://racket.discourse.group/t/raco-test-with-errortrace/1505/3 "2022-11-23T03:42:47Z")

</div>

I upgraded Racket. Now the option is available. Thanks.
