I'm trying to run tests which match ALL of the supplied selectors and couldn't find a way to do that - all docs/help seems to only mention single selector.
Specifically, I want to use :only
in combination with my custom :regression-test
selector.
I tried this but it doesn't seem to have any effect (no test is run):
lein test :regression-test :only
lein test :regression-test, :only
Is there a way to do that?Would it be better to define a custom selector that achieves the same thing? Your selector section in project.clj
is just an expression anyway, so the actual selector name does not need to match the selector tag that you applied on a test/ns level.
Looking here it almost look like it should be possible but I'm not able to figure it out: https://github.com/technomancy/leiningen/blob/master/src/leiningen/test.clj#L175-L193
Here's the relevant config in my project.clj
:test-selectors {:no-regression-test (complement :regression-test)
:only-regression-test :regression-test}