-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Mention "-k not" option on the documentation #1442
Comments
You can use |
we indeed to not have a way to ignore specific parts of the collection tree |
Thanks,
Mentioning |
(Updated the issue title, hope you don't mind) @keszybz would you care to open a PR with that? 😁 |
Sure, I can try to update the docs, but I want to nail down all the details first. I have a project with the same test name in two different files. I was hoping py.test-3 -vv -k 'not test_fsimage.py::test_differences' would DTRT, but unfortunately it doesn't work. Is it possible to do something like that (match on both filename and test name)? |
Hmm I'm not sure, I think |
@nicoddemus I think the usage of
As an operator, So what's really lacking in the documentation here is mentioning the availability of I can update the |
I'm sure this must have been discussed before, but I cannot find it in the issue list or documentation...
A way to skip tests from the command-line would be really nice. Currently it's possible to
--ignore=path
skipif
markers in the codebut there doesn't seem to be the equivalent of nosetest's
--exclude=REGEX
option that matches on test names.(This is for example very useful when packaging stuff, it's much easier to skip certain known flaky or broken tests from the commandline when invoking py.test, than to modify the sources.)
The text was updated successfully, but these errors were encountered: