Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Test Explorer is not reporting test status if a test is annotated with xdist_group #24935

Copy link
Copy link
Open
@rsporny

Description

@rsporny
Issue body actions

Type: Bug

Behaviour

Test Explorer is not reporting test status (red/green/skipped icons) when executed test is annotated with @pytest.mark.xdist_group("<group_name>")

Image

Steps to reproduce:

  1. Have pytest and xdist installed.
  2. Create a test:
import pytest
@pytest.mark.xdist_group("my_name")
def test_result_on_test_explorer_tab_with_xdist_group():
    assert True
  1. Setup pytest args
-n1 --dist=loadgroup
  1. Run the test in Test Explorer pane.

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2025-03-28 09:34:36.028 [info] Attempting to use temp directory for test ids file, file name: test-ids-2d4841d5f435a572ada2.txt
2025-03-28 09:34:36.029 [info] All environment variables set for pytest execution, PYTHONPATH: "/Users/radek/.vscode/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-28 09:34:36.029 [info] Running pytest with arguments: /Users/radek/.vscode/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/vscode_pytest/run_pytest_script.py --log-cli-level=INFO -m debug -n1 --dist=loadgroup --rootdir=/redacted/e2e-tests for workspace /redacted 

2025-03-28 09:34:36.029 [info] > ./venv/bin/python ~/.vscode/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/vscode_pytest/run_pytest_script.py --log-cli-level=INFO -n1 --dist=loadgroup --rootdir=./e2e-tests
2025-03-28 09:34:36.029 [info] cwd: ./e2e-tests
2025-03-28 09:34:37.716 [info] Test Result named pipe /var/folders/fj/q1_v_36x4rdcxyh92ddsq4y00000gn/T/python-test-results-680c92b04e19cdaa6f9c  cancelled

Extension version: 2025.2.0
VS Code version: Code 1.98.2 (Universal) (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)
OS version: Darwin arm64 24.3.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.8
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

testing
• cwd: "<placeholder>"
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions
Extension Name Extension Id Version
autodocstring njp 0.6.1
black-formatter ms- 2025.2.0
code-spell-checker str 4.0.40
copilot Git 1.292.0
copilot-chat Git 0.25.1
debugpy ms- 2025.4.1
earthfile-syntax-highlighting ear 0.0.16
flake8 ms- 2025.2.0
gitlens eam 16.3.3
indent-rainbow ode 8.3.1
isort ms- 2023.10.1
js-debug ms- 1.97.1
js-debug-companion ms- 1.1.3
live-server ms- 0.4.15
plantuml jeb 2.18.1
python ms- 2025.2.0
rainbow-csv mec 3.18.0
remote-containers ms- 0.401.0
remote-explorer ms- 0.4.3
remote-server ms- 1.5.2
remote-ssh ms- 0.118.0
remote-ssh-edit ms- 0.87.0
signageos-vscode-sops sig 0.9.2
vim vsc 1.29.0
vscode-docker ms- 1.29.4
vscode-js-profile-table ms- 1.0.10
vscode-pylance ms- 2025.3.2
vscode-remote-extensionpack ms- 0.26.0
vscode-yaml red 1.17.0
xml Dot 2.5.1
System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
GPU Status 2d_canvas: enabled
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
Load (avg) 4, 4, 6
Memory (System) 32.00GB (0.08GB free)
Process Argv
Screen Reader no
VM 0%

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.