Fork me on GitHub
#clojure
<
2024-07-14
>
Drew Verlee16:07:34

How would direct the output of a deftest to the repl instead of to stdout?

Drew Verlee16:07:29

with-out-str seems to just return an empty string in the case of a failing test.

p-himik17:07:54

Maybe the output is printed to stderr? You can try binding *err* to something that logs into your REPL.

igrishaev17:07:50

It's because when you run a test, a function which does it binds *out* to something else.

Drew Verlee03:07:37

thsnks p-hmiik, igishaev and jjttjj. Ill try the binding if i end up really needing this đŸ™‚

Édouard WILLISSECK10:07:54
replied to a thread:

Oh my god thank you very much. I've lost so much time because of this and it was right from the start ^^