leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
jumar 2020-02-22T08:16:19.119Z

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?

2020-02-24T08:50:27.002300Z

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.

jumar 2020-02-22T08:27:22.119100Z

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

jumar 2020-02-22T08:30:31.119400Z

Here's the relevant config in my project.clj

:test-selectors {:no-regression-test   (complement :regression-test)
                   :only-regression-test :regression-test}