cognitect-labs/test-runner

-n and -r don't compose?

borkdude opened this issue · 2 comments

If you use the -n option together with the -r option, it seems only the -n option is used.

vemv commented

Hi,

I think now they compose too much :)

If I pass clojure -M:test -n foo-test it's a reasonable expectation that only that test will be executed. However all other existing tests will also be executed.

There's the specific precedent of lein test :only foo, which will run only foo and nothing else, no matter what.

I'm failing to find an "only" semantic in -main.

Sounds good to reopen? Can also report in isolation.


Current workaround: -n foo -r "aaaaaaaaaaa" where aaaaaaaaaaa will intentionally match nothing.

vemv commented

I didn't notice #29 and the subsequent commit.

Bumping com.cognitect/test-runner fixed this for me.

Sorry for the noise!