Start a socket repl
clojure -A:socket2
Clojure 1.10.3
user=> (require '[clojure.test :as t])
nil
user=> (t/deftest foo (t/is (= 1 2)))
#'user/foo
user=> (foo)
FAIL in (foo) (NO_SOURCE_FILE:1)
expected: (= 1 2)
actual: (not (= 1 2))
nil
user=>
This prints the test results correctly. In another terminal, connect to the socket repl
% nc localhost 60606
user=> (foo)
nil
user=>
This causes the report to be printed in the original terminal repl, not the socket repl.
but if you bind you can keep your test results:
user=> (binding [t/*test-out* *out*] (foo))
FAIL in (foo) (NO_SOURCE_FILE:1)
expected: (= 1 2)
actual: (not (= 1 2))
nil
user=>