You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests marked parametrize are expected to be collapsed to the test name, and if you expand them, then there are tests with specific parameters inside them
With the test_two function the test explorer behaves as it should, but with functions inside a class it doesn't, the same behavior is expected for functions inside classes as well
Diagnostic data
Python version (& distribution if applicable, e.g. Anaconda): 3.12.2
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
Value of the python.languageServer setting: Default
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
2024-02-14 09:47:09.791 [info] Discover tests for workspace name: source - uri: c:\Users\ITV\source\test_something.py
2024-02-14 09:47:09.792 [info] Running discovery for pytest using the new test adapter.
2024-02-14 09:47:09.871 [info] > D:\Autotests\ROBO\Python\python.exe -m pytest -p vscode_pytest --collect-only .
2024-02-14 09:47:09.871 [info] cwd: .
2024-02-14 09:47:10.474 [info] ============================= test session starts =============================
platform win32 -- Python 3.12.2, pytest-8.0.0, pluggy-1.4.0
2024-02-14 09:47:10.477 [info] rootdir: c:\Users\ITV\source
plugins: allure-pytest-2.13.2, anyio-4.2.0
2024-02-14 09:47:10.487 [info] collected 9 items
<Dir source>
<Module test_something.py>
<Class TestSomething>
<Function test_one[1]>
<Function test_one[2]>
<Function test_one[3]>
<Function test_three[1]>
<Function test_three[2]>
<Function test_three[3]>
<Function test_two[1]>
<Function test_two[2]>
<Function test_two[3]>
2024-02-14 09:47:10.492 [info] Test server connected to a client.
2024-02-14 09:47:10.493 [info] ResultResolver EOT received for discovery.
2024-02-14 09:47:10.494 [info]
========================= 9 tests collected in 0.03s ==========================
Type: Bug
Behaviour
Expected vs. Actual
Tests marked parametrize are expected to be collapsed to the test name, and if you expand them, then there are tests with specific parameters inside them
Test Explorer expands tests marked paramterize
Steps to reproduce:
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.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z)
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
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: