Fork me on GitHub
#testing
<
2020-07-16
>
orestis13:07:25

Is there a known thing in clojure.test that the *ns* is bound to user ? I’m trying to use a macro to generate temp databases that are unique to the namespace and it seems that both Kaocha and cognitect/test-runner will set the namespace to user , probably doing the test discovery phase?

orestis13:07:35

Running the tests frmo the repl works just fine.

orestis13:07:52

Huh, when you require a namespace, the *ns* var is not set to the “required” namespace, but stays to user…

seancorfield16:07:19

(for folks here who are not in #clojure-dev that discussion shifted there and was answered -- TL;DR: it's the intended behavior)

orestis17:07:37

Yeah I think I should delete the noise? I started from kaocha, shifted to testing after I tried cognitect/test-runner, then to clojure-dev with the root repro

seancorfield17:07:10

Your call. I just wanted to tie up the loose end that the posts seem to be. 🙂