Fork me on GitHub
#leiningen
<
2021-10-13
>
ag20:10:55

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

vemv23:10:44

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)

vemv23:10:19

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