-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add ability to use globs when using --ignore #4722
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even tho this is a really nice change, its breaking backward compatibility, i propose adding a --ignore-glob
parameter
I agree; while I think few users are using |
I'll update the PR to introduce a new |
5625bfc
to
fff211e
Compare
This adds the `--ignore-glob` option to allow Unix-style wildcards so that `--ignore-glob=integration*` excludes all tests that reside in files starting with `integration`. Fixes: pytest-dev#3711
fff211e
to
e899dcc
Compare
Great, thanks!
Sorry, what do you mean, a new option, or hook, ? |
PR is updated now with the
See my second commit. I thought it might be useful and implemented it right away. |
The option |
This adds the `collect_ignore_glob` option for `conftest.py` to allow Unix-style wildcards for excluding files.
e899dcc
to
1876a92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome contribution @fetzerch, thanks a lot! 🤗
I agree with this idea for new options, but given that we have |
@RonnyPfannschmidt |
Thank you! |
This changes the
--ignore
option to allow Unix-style wildcards sothat
--ignore=integration*
excludes all tests that reside in filesstarting with
integration
.Fixes: #3711