-
Notifications
You must be signed in to change notification settings - Fork 26
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
pytest xdist should run with -n0 in debug #336
Comments
Hi! We are looking to make changes to how we pass args so you could have multiple config types: microsoft/vscode-python#21845. Would this solve your issue? Otherwise it would need to be a separate feature request. Our general policy at this time is we are trying to edit the pytest args as little as possible since it is very hard to do right. With this in mind, I am hesistant to do a feature request that causes arg editing and this would require a larger team conversation if you do want to make this a separate feature request. Thanks |
i guess a separate python.testing.pytestArgs for debug would be a suitable workaround. i would think you'd want this behavior to be out of the box but user configuration is fine too. cheers |
ideally, it should dynamically decide how many runners to use based on how many tests are selected: pytest-dev/pytest-xdist#853 i came up with a workaround that works well with vscode's new pytest test adapter: pytest-dev/pytest-xdist#853 (comment)
|
Thanks for the feature request! We are going to give the community 60 days 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. |
im going to try to make a PR adding this feature, because i'm pretty sure that smalll |
Thank you @DetachHead for contributing! |
…e based on count of selected tests (#23539) fixes microsoft/vscode-python-debugger#336 --------- Co-authored-by: detachhead <[email protected]> Co-authored-by: Karthik Nadig <[email protected]>
…e based on count of selected tests (microsoft#23539) fixes microsoft/vscode-python-debugger#336 --------- Co-authored-by: detachhead <[email protected]> Co-authored-by: Karthik Nadig <[email protected]>
@DetachHead, It doesn't work with pytest 6.2.5.
Commenting out your change allows Test Explorer to work. |
@shakhovski we are looking to no longer support any pytest version below 7, if possible it is best to update to a newer version. Thanks! |
when debugging a (single) test with pytest, invocation of pytest should add
-n 0
. This way multiple runners will not be used and start-up time is reduced.The text was updated successfully, but these errors were encountered: