-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Comments
hello! Would this solve what you are looking for? #21845 |
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. |
Great thanks for the extra info! Marking this for community feedback! |
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. |
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. |
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.
The text was updated successfully, but these errors were encountered: