-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Enable runtime invocation parameters for test runs #15004
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
Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision. |
Is this talking about sending arguments to unittest/pytest/nose? Can't you do that with python.testing.unittestArgs, python.testing.pytestArgs, or python.testing.noseArgs in settings.json? Or when test runner is said, do you mean the test file to be run? I'm trying to decide if this is a duplicate of an issue I am having. My scenario is I want to be able to specify command line arguments to my test file that are ignored by the test runner script in vscode-python. This comes up when you want to use the "Run Test" or "Debug Test" CondeLens buttons above a test but that test requires command line arguments to be specified before running. I'm hoping to put those arguments in one of the settings parameters mentioned above so that I can just click the buttons to get them to run. Also, this might be a duplicate of #12997 where a potential solution is provided (if I understand this correctly). |
A lot of testing stuff has now been changed, please open a new issue if this is still one. |
It does not currently appear possible to pass arguments to the test runner when executing or debugging unit tests. This is especially problematic when tests are tagged and one typically wants to execute different test groups or group combinations.
The text was updated successfully, but these errors were encountered: