Skip to content

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

Closed
jdmargulici opened this issue Dec 17, 2020 · 3 comments
Closed

Enable runtime invocation parameters for test runs #15004

jdmargulici opened this issue Dec 17, 2020 · 3 comments
Labels
area-testing feature-request Request for new features or functionality needs proposal Need to make some design decisions

Comments

@jdmargulici
Copy link

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.

@jdmargulici jdmargulici added triage-needed Needs assignment to the proper sub-team feature-request Request for new features or functionality labels Dec 17, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Dec 21, 2020
@brettcannon brettcannon added area-testing triage-needed Needs assignment to the proper sub-team labels Dec 21, 2020
@brettcannon
Copy link
Member

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.

@brettcannon brettcannon removed the triage-needed Needs assignment to the proper sub-team label Dec 21, 2020
@jaron-l
Copy link

jaron-l commented Dec 28, 2020

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).

@luabud luabud added needs proposal Need to make some design decisions and removed needs decision labels Feb 24, 2021
@karrtikr
Copy link

A lot of testing stuff has now been changed, please open a new issue if this is still one.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing feature-request Request for new features or functionality needs proposal Need to make some design decisions
Projects
None yet
Development

No branches or pull requests

5 participants