Specifically I'd like to set clojure.test/*load-tests*
to false, so that test code is excluded by the clojure.test/deftest
,with-test
etc. macro's. Lein provided injections as an escape hatch, tools.build doesn't seem to have an equivalent.
Looking at the code, tools.build seems to compile code from a separate generated script in a temp file, which seems to make injections or wrappers impossible. Also couldn't find options to pass other than compiler options.
A more in-depth description of this use case can be found on clojureverse: https://clojureverse.org/t/require-import-inside-deftest/8644/3
Is there a solution or suggested workaround available?