leiningen

ag 2021-10-13T20:15:55.050800Z

how do I run tests in a given folder? I want something like lein test :only ./foo/bar-tests/ and it would run all tests in there

vemv 2021-10-21T23:53:44.003900Z

not a real answer (which would be "read Lein's test.clj and hack it"), but I'm finding it's fairly trivial to code a bespoke test runner. Part 1 is having a snippet such as this one in your classpath https://github.com/reducecombine/.lein/blob/f01aec663ff4ac8f8e83f8eca93a13b2cf99aa4b/scripts/vemv.clj#L67-L92 it's easy to set via ~/.lein profiles Part 2 is having a yasnippet that would expand to e.g. (vemv/run-all-tests)

vemv 2021-10-21T23:54:19.004200Z

My snippet doesn't have folder selectors, but it does sound like something that you could hook up tools.namespace for?