support passing filter as test binary arguments#265
Conversation
Signed-off-by: tabokie <xy.tao@outlook.com>
|
@sunshowers Another feature request while migrating from cargo. PTAL~ |
Signed-off-by: tabokie <xy.tao@outlook.com>
|
Thanks for the contribution! Hmm, I'm not totally convinced by the direction of this diff. Could you elaborate on the goal and intended audience for this a bit more? Is it to be able to pass in arguments like |
|
Yes, I understand your concern. Personally I think of it as a first step to support test binary arguments (instead of a temporary workaround for certain filters). Ultimately we might want to push down unsupported test binary arguments to internal calls. Aside from that, currently my main use case is really to keep the test command consistent with cargo workflow. E.g. |
sunshowers
left a comment
There was a problem hiding this comment.
Thanks for the response. I do see the use case and after having given it some thought, I think it would be OK to support an extremely limited form of this. --ignored and --include-ignored, test binary literals, and nothing else.
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
| } else if s.chars().all(|c| c == '-') { | ||
| false |
There was a problem hiding this comment.
This is still not quite there:
- This needs to just be
--(a single-doesn't match, nor does---). - Once this is hit, it should go into a mode where the
s.starts_with('-')check is disabled and everything is pushed into the filter.
|
That needless_bool lint suggestion is unhelpful and should be disabled for this block. |
Signed-off-by: tabokie <xy.tao@outlook.com>
|
Looks fantastic now, thanks! Going to land this once CI passes -- hopefully get a release out in a few days as well. |
Signed-off-by: tabokie <xy.tao@outlook.com>
Adding partial support for specifying test binary arguments like cargo. It can
greatly simplify the transitioning from cargo to nextest.
Signed-off-by: tabokie xy.tao@outlook.com