-
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 parametrized tests in a class displayed under class node instead of test node #22870
Comments
will investigate- thanks! |
verified I can see this issue too and it is a bug. Next step will be sending a PR for the fix. Thanks for the heads up here on this issue! |
@eleanorjboyd Please write here when it will be possible to download a pre-release with a fix for this problem, or somehow let us know that the problem has been fixed |
Any update on this issue? |
Hi! I am back from vacation and circling back to this issue now- thanks |
Hello! I have put in a fix for this issue and it should now be working! If you could try it on the newest version of the python extension nightly pre-release that would be great so we know if it works! Happy coding! |
verification steps:
|
Thanks a lot @eleanorjboyd !! |
Type: Bug
Behaviour
Expected vs. Actual
On previous VSCode versions the TestExplorer would display the parametrized tests hanging from the test name's node regardless of this test being part of a test class or not. Since, at least, 2023 June release this is no longer the case and all parametrized tests will be directly appended to the class's tests.
(Perhaps related or consequence of the fix from #21541)
Steps to reproduce:
test_dummy.py
.test_simple_dummy
) will be correctly visualized in the test explorer, whilst the cases in the wrapped test class will be appended directly to theTestWrapper
node.Result:
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2024.0.1
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z)
OS version: Windows_NT x64 10.0.19045
Modes:
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: