-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
regrtest: add switch -c to run only modified tests #66995
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
Comments
A quick way to select only tests that are modified in the checkout. |
Unfortunately this doesn't work with tests for pickle, json or tkinter. I'm afraid this feature would make false promise. Without careful check you can not be confident that all modified tests are selected. If you going to add this switch, it should emit a
and enumerate all modified files containing 'test' in its path which are not recognized as valid test name. |
I agree this is more dangerous than useful. |
Well, this is not meant as a comprehensive "run ALL impacted tests" because that is impossible in general :) An alternate suggestion would be to allow filenames like "Lib/test/test_foo.py" as arguments to regrtest. Then I could run without the switch using .../regrtest.py |
I'm now closing this issue because Antoine, Serhiy and me dislike the idea.
This sounds like a better plan. Please open a new issue if you still need that. FYI I refactoring regrtest.py into libregrtest, it might be easier to enhance it now. |
New changeset 1005573e6a74 by Victor Stinner in branch 'default': |
I added "python -m test --list-tests". It's not perfect but it's better than nothing :-p |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: