-
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
The new pythonTestAdapter breaks python-subtests #24455
Comments
Giving this a try, when I try it from the terminal I get this:
Any idea why |
create issue to discuss design in the pytest-subtest repo since another question came up as well. Feel free to comment in either place with your thoughts |
I can only confirm that the whole test is marked as PASSED. In the summary section it says that 2 [subtests] failed, 1 [test] passed, 3 subtests passed. In VS Code test panel it shows the whole "test_x" as failed. And it is more appropriate than just ignoring subtests results as pythonTestAdapter does.
|
Type: Bug
Behaviour
I cannot use python-subtests when pythonTestAdapter is enabled.
Exceptions in subtests (except for the first subtest) don't cause the test to be marked as failed.
Steps to reproduce:
Here's an example:
Test results:
The second subtest has failed but the test is marked as passed on the Testing panel.
Extension version: 2024.20.0
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.19045
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
The text was updated successfully, but these errors were encountered: