Add ability to use globs when using --ignore#4722
Conversation
RonnyPfannschmidt
left a comment
There was a problem hiding this comment.
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
nicoddemus
left a comment
There was a problem hiding this comment.
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
--ignoreoption to allow Unix-style wildcards sothat
--ignore=integration*excludes all tests that reside in filesstarting with
integration.Fixes: #3711