Fork me on GitHub
#cider
<
2020-09-04
>
deadghost02:09:53

Yes cider-test-run-ns-tests works after running cider-load-buffer on project.foo-test. I would like all my test namespaces loaded in on REPL startup.

bozhidar07:09:57

There's no such functionality built-in, but you can have some hook that loads all you namespaces when you connect to the REPL server. Just keep in mind that this might trigger some side-effects, which is the main reason CIDER will never auto-loading anything.

practicalli-johnny08:09:12

@deadghost To require specific namespaces on REPL startup, add a user.clj file to a project (somewhere on the classpath) and add the require expressions for each namespace. https://practicalli.github.io/clojure/clojure-tools/configure-repl-startup.html#requiring-namespaces The require expressions can be part of the user ns expression or as their own require expression.

schmidt7318:09:05

is there any built in macro for this patter:

schmidt7318:09:24

I know you could use if-let but then you have to give the thing a name...

dpsutton18:09:50

(or e body)

dpsutton18:09:20

but these questions should probably go in #clojure or #beginners depending on the question. nothing about CIDER in that question