Skip to content
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

Ability to provide run time agruments to individual tests in pytest #22715

Closed
sundar-ds opened this issue Jan 4, 2024 · 5 comments
Closed

Ability to provide run time agruments to individual tests in pytest #22715

sundar-ds opened this issue Jan 4, 2024 · 5 comments
Assignees
Labels
area-testing feature-request Request for new features or functionality needs community feedback Awaiting community feedback

Comments

@sundar-ds
Copy link

Right now, any arguments that needs to be supplied while running a pytest function or method is at the global settings level for the workspace or the user. We need a way to set pytest arguments at the individual test level for better control of the tests.

@sundar-ds sundar-ds added the feature-request Request for new features or functionality label Jan 4, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 4, 2024
@eleanorjboyd
Copy link
Member

hello! Would this solve what you are looking for? #21845

@eleanorjboyd eleanorjboyd self-assigned this Jan 4, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jan 4, 2024
@sundar-ds
Copy link
Author

sundar-ds commented Jan 5, 2024

It does to some extent, although the new design still handles it a global and segregates between run and discovery. My ask is to have a feature to add args at the various test level in the test explorer. A test is listed down by its module, or class, its method or a function. A feature to add args at these level will be very helpful.

The request is coming from using playwright (another microsoft library for web testing) using python in VSCode. There are args we may want to apply just for a test (like --headed, --slowmo etc.) and not have it at the global level for every run. This is a feature that is available in PyCharm (which is resource intensive) that works great so having something similar in VSCode would tremendously help.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jan 5, 2024
@eleanorjboyd
Copy link
Member

Great thanks for the extra info! Marking this for community feedback!

@eleanorjboyd eleanorjboyd added needs community feedback Awaiting community feedback and removed triage-needed Needs assignment to the proper sub-team labels Jan 5, 2024
Copy link

github-actions bot commented Jan 5, 2024

Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

@brettcannon
Copy link
Member

Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue.

@brettcannon brettcannon closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2024
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 community feedback Awaiting community feedback
Projects
None yet
Development

No branches or pull requests

3 participants