-
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
pytest discovery broken in v2024.22.1 #24660
Comments
Also affected by this |
I have a similar issue, test discovery never completes. |
+1. Discovery works again after downgrading to 2024.22.0 (from 2024.22.1) |
I think this issue has already been reported in #24656. |
I don't use pytest and I'm having the same issue so I went back to 2024.22.0 and it's working again for unittest. |
I'm curious how many VS Code users spent as much time as I did before finally realizing it was the plug-in version change. |
Type: Bug
Behaviour
Pytest discovery is stuck after finding all pytests displaying the last test - but does not display them in the side panel. Switching to the previous version - pytest discovery works as expected: the same tests are discovered and immediately test collection finishes.
Steps to reproduce:
tests are in
/backend/tests/unit
and/backend/tests/integration
the code is in/backend/appname
and I am using this pyproject.toml fileProblem
for the new extension, the trace output of python shows exactly the same tests as being discovered, but it is stuck before it can finish the test discovery
Extension version: 2024.22.0
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Darwin x64 23.5.0
Modes:
The text was updated successfully, but these errors were encountered: