-
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
VSCode Pytest Discovery Fails when using pytest-describe #24661
Comments
@karthiknadig I downgraded to 2024.22.0 and then to 2024.20.0 but my problem still exists with any version. I don't think it's related to the issue you linked. I did some digging and debugging into the extension code and compared it with my output: if kind == "function":
if testfunc and fullname != testfunc + parameterized:
raise should_never_reach_here( and
Thus I believe it rather has something to do with |
after downgraded vscode-python extension, I also needed to clone my project to a new folder to get it working again, don't know why, I even upgraded the version again to check if it could be solved only doing this and I needed to clone into a new folder again(also downgrade again), give it a try. |
Hi! It looks like you still aren't on the experiment. In your logs it mentions |
@eleanorjboyd I already have this setting in my global settings, and I also added it to the
|
Do you have the setting: This comment brought up that removing it helped and wondering if this is connected: #24214 (comment). |
@eleanorjboyd yes, and I tried removing it incl. other telemetry related configs, but same result. The only thing I realize is that in my pretty new project, where I have 2 test files, it takes some seconds to show the tests. So I did the same in another repo with some more tests (12 test files with a total of 89 tests). It shows all Thanks for your assistance. |
Type: Bug
Behaviour
I'm working on a poetry project with pytest and pytest-describe.
Tests are not recognized by the python extension.
My
.vscode/settings.json
containsHowever, despite setting "Trace" in VSCode Output "Python", there's no "Experiment" in the output.
Steps to reproduce:
pytest-describe
.pytest
inpyproject.toml
withtests/convert/test_convert_command.py
with nested describe structure, e.g.Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.22.1
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 23.4.0
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
The text was updated successfully, but these errors were encountered: