Welcome! Please see the About page for a little more info on how this works.

0 votes
in Test by

Is there a way to set *load-tests* when starting the REPL?
Some options can be set using system properties, like compiler options, any chance for something similar for clojure.test?

1 Answer

0 votes
by

How are you starting a REPL?

by
With `cider-jack-in` from Emacs, but I'd prefer a solution that is editor agnostic
by
I don't think there is an editor-agnostic solution (and maybe not even an editor-specific one). Because `*load-tests*` is not bound in clojure.main, you'd really need a dynamic binding set around the repl invocation, which maybe even puts it outside something like Leiningen :injetions.
by
I could also ensure different user.clj files get loaded when invoking compile-clj or lein uberjar
...