Fork me on GitHub
#kaocha
<
2020-07-16
>
orestis13:07:30

Is kaocha loading the test functions under the “user” namespace?

orestis13:07:33

Context: I’m using a macro that looks at the current *ns* to define temp databases etc. When running tests at the repl (using clojure.test) everything works fine. When running through kaocha, it seems like that *ns* is set to user

plexus13:07:59

we're not doing anything with user AFAIK

orestis14:07:46

Yeah sorry, I thought I was going crazy but it was a difference in how ns is bound when you are already inside an ns and evaluate tests vs when you load the tests from outside. I got confused with dynamic vars.