Open svix-jplatte opened 4 months ago
Hi -- I was hesitant to add this at first, but over the last few months I've changed my mind. I'm happy to accept a PR for this. Some notes:
--skip
and --exact
should only be accepted after cargo nextest run --
-- the point after --
is where we accept test binary args. See https://github.com/nextest-rs/nextest/blob/02a0cf0cb7d388c4cb709b2c9612a0b2b6bda800/cargo-nextest/src/dispatch.rs#L606-L629.--skip
/--exact
is passed in, both should be matched for a test to be run.--skip
and --exact
especially when they're passed in together, so a full description of the semantics, with tests would be wonderful.I was able to get it to work, see #1653. It's in draft state though because I broke a test and couldn't really figure out how to add a new one either. And it's quite likely I didn't solve it in the best possible way.
Hi, I was just looking for an issue about
--skip
in nextest and found #29 which is saying that these are supported, but using different syntax. This is problematic for my use case since I have a test script that runscargo nextest run
if available, but falls back to regularcargo test
if nextest is not installed. I also think that for interactive usage,--skip
and--exact
are much easier to use than the filter expression syntax.Would you consider adding support for these flags? The implementation could just instantiate the appropriate filter expressions internally, so it should be really simple.