Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking issue for filter expressions #158

Closed
3 tasks done
sunshowers opened this issue Apr 17, 2022 · 3 comments
Closed
3 tasks done

Tracking issue for filter expressions #158

sunshowers opened this issue Apr 17, 2022 · 3 comments
Labels
A-filter-expressions Support for filter expressions

Comments

@sunshowers sunshowers added the A-filter-expressions Support for filter expressions label Apr 17, 2022
@pan93412
Copy link

pan93412 commented Jul 10, 2022

I have such the tests:

crypto-markets::bitmex aaaaa
crypto-markets::bitmex bbbbb
crypto-markets::bitmex ccccc
crypto-markets::others bbbbb
crypto-markets::dont_exclude aaaaa

How can I exclude the bitmex tests while still including others and dont_exclude? I tried all() - package(/bitmex/) (and package(~bitmex)), and it reported:

$ cargo nextest run -E 'all() - package(/bitmex/)'

  error: operator didn't match any packages
   ╭────
 1 │ package(/bitmex/)
   ·         ────┬───
   ·             ╰── no packages matched this
   ╰────

error: failed to parse filter expression

While all() - test(/bitmex/) (test(bitmex), test(~bitmex)) can only match:

crypto-markets::bitmex bitmex_aaaaa
crypto-markets::bitmex bitmex_bbbbb
crypto-markets::bitmex bitmex_ccccc
crypto-markets::others bitmex_bbbbb
crypto-markets::dont_exclude bitmex_aaaaa

@sunshowers
Copy link
Member Author

sunshowers commented Jul 10, 2022

Thanks for pointing this out! You're right that this is a gap right now. The next version of nextest (hopefully done in a couple of days) will add a new binary predicate for this purpose. If you build nextest from main you can try it out right now.

@sunshowers
Copy link
Member Author

sunshowers commented Jul 13, 2022

Filter expressions have been released as part of cargo-nextest 0.9.25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-filter-expressions Support for filter expressions
Projects
None yet
Development

No branches or pull requests

2 participants