-
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
Make sure tests generated by pytest plugins are not ignored. #8425
Comments
@ericsnowcurrently please, take a look. |
This way VSCode will still include us in the list of results. See also: [vscode-python#8242] where it broke, [vscode-python#8245] which is the issue tracking fixing it and [_get_item_kind] which is the function which figures out whether this is an pytest test function or not. [vscode-python#8242]: microsoft/vscode-python#8242 [vscode-python#8245]: microsoft/vscode-python#8425 [_get_item_kind]: https://github.com/microsoft/vscode-python/blob/411d1d4ae7e3884a8ef9294a0aa1688dc05d0f37/pythonFiles/testing_tools/adapter/pytest/_pytest_item.py#L530-L540
This way VSCode will still include us in the list of results. See also: [vscode-python#8242] where it broke, [vscode-python#8245] which is the issue tracking fixing it and [_get_item_kind] which is the function which figures out whether this is an pytest test function or not. [vscode-python#8242]: microsoft/vscode-python#8242 [vscode-python#8245]: microsoft/vscode-python#8425 [_get_item_kind]: https://github.com/microsoft/vscode-python/blob/411d1d4ae7e3884a8ef9294a0aa1688dc05d0f37/pythonFiles/testing_tools/adapter/pytest/_pytest_item.py#L530-L540
Hello! We have just finished our testing rewrite and are beginning the roll out to users. If you are able, it would be very helpful to know if your issue still exists on the rewrite! To use the rewrite yourself just add Thanks! |
@eleanorjboyd |
Thank you for taking a look. I will investigate this shortly, thanks! |
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. |
Need community feedback here on if this is still a relevant ask people want for the extension, thanks! |
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. |
Need to improve handling pytest-plugins tests, because after resolving #7287 they are skipped.
[added by @ericsnowcurrently]:
Just to be clear, this is about pytest plugins that add in extra test nodes/items during the "collection" phase. By default pytest collects tests/suites/modules/packages on the filesystem (and optionally doctests). This is what the testing adapter script is focused on accommodating.
Additionally, pytest allows plugins to add test nodes (e.g. the pep8 plugin). However, the adapter doesn't know how to handle those. In #8242 we start ignoring them instead of failing. That isn't ideal, so we should work on supporting plugin-generated test nodes.
FWIW, I am not sure what the old code (parsing the pytest CLI output) used to do with plugin-generated nodes. My vague recollection is that it ignored them as well (but that should probably be verified). That is the reason this is an enhancement request.
The text was updated successfully, but these errors were encountered: