Title: Test Explorer is not reporting test status if a test is annotated with xdist_group · Issue #24935 · microsoft/vscode-python · GitHub
Open Graph Title: Test Explorer is not reporting test status if a test is annotated with xdist_group · Issue #24935 · microsoft/vscode-python
X Title: Test Explorer is not reporting test status if a test is annotated with xdist_group · Issue #24935 · microsoft/vscode-python
Description: Type: Bug Behaviour Test Explorer is not reporting test status (red/green/skipped icons) when executed test is annotated with @pytest.mark.xdist_group("
Open Graph Description: Type: Bug Behaviour Test Explorer is not reporting test status (red/green/skipped icons) when executed test is annotated with @pytest.mark.xdist_group("
X Description: 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>") Steps to repro...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/24935
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test Explorer is not reporting test status if a test is annotated with xdist_group","articleBody":"\nType: \u003cb>Bug\u003c/b>\n\n\u003c!-- Please fill in all XXX markers -->\n# Behaviour\nTest Explorer is not reporting test status (red/green/skipped icons) when executed test is annotated with `@pytest.mark.xdist_group(\"\u003cgroup_name>\")`\n\n\n\n## Steps to reproduce:\n\n1. Have pytest and xdist installed.\n2. Create a test:\n```\nimport pytest\n@pytest.mark.xdist_group(\"my_name\")\ndef test_result_on_test_explorer_tab_with_xdist_group():\n assert True\n```\n3. Setup pytest args\n```\n-n1 --dist=loadgroup\n```\n4. Run the test in Test Explorer pane.\n\n\n# Diagnostic data\n\n\u003cdetails>\n\n\u003csummary>Output for \u003ccode>Python\u003c/code> in the \u003ccode>Output\u003c/code> panel (\u003ccode>View\u003c/code>→\u003ccode>Output\u003c/code>, change the drop-down the upper-right of the \u003ccode>Output\u003c/code> panel to \u003ccode>Python\u003c/code>)\n\u003c/summary>\n\n\u003cp>\n\n```\n2025-03-28 09:34:36.028 [info] Attempting to use temp directory for test ids file, file name: test-ids-2d4841d5f435a572ada2.txt\n2025-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\"\n2025-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 \n\n2025-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\n2025-03-28 09:34:36.029 [info] cwd: ./e2e-tests\n2025-03-28 09:34:37.716 [info] Test Result named pipe /var/folders/fj/q1_v_36x4rdcxyh92ddsq4y00000gn/T/python-test-results-680c92b04e19cdaa6f9c cancelled\n```\n\n\u003c/p>\n\u003c/details>\n\n\nExtension version: 2025.2.0\nVS Code version: Code 1.98.2 (Universal) (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)\nOS version: Darwin arm64 24.3.0\nModes:\n\n- Python version (& distribution if applicable, e.g. Anaconda): 3.12.8\n- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv\n- Value of the `python.languageServer` setting: Default\n\n\u003cdetails>\n\u003csummary>User Settings\u003c/summary>\n\u003cp>\n\n```\n\nlanguageServer: \"Pylance\"\n\ntesting\n• cwd: \"\u003cplaceholder>\"\n• pytestArgs: \"\u003cplaceholder>\"\n• pytestEnabled: true\n\n```\n\u003c/p>\n\u003c/details>\n\n\u003cdetails>\n\u003csummary>Installed Extensions\u003c/summary>\n\n|Extension Name|Extension Id|Version|\n|---|---|---|\n|autodocstring|njp|0.6.1|\n|black-formatter|ms-|2025.2.0|\n|code-spell-checker|str|4.0.40|\n|copilot|Git|1.292.0|\n|copilot-chat|Git|0.25.1|\n|debugpy|ms-|2025.4.1|\n|earthfile-syntax-highlighting|ear|0.0.16|\n|flake8|ms-|2025.2.0|\n|gitlens|eam|16.3.3|\n|indent-rainbow|ode|8.3.1|\n|isort|ms-|2023.10.1|\n|js-debug|ms-|1.97.1|\n|js-debug-companion|ms-|1.1.3|\n|live-server|ms-|0.4.15|\n|plantuml|jeb|2.18.1|\n|python|ms-|2025.2.0|\n|rainbow-csv|mec|3.18.0|\n|remote-containers|ms-|0.401.0|\n|remote-explorer|ms-|0.4.3|\n|remote-server|ms-|1.5.2|\n|remote-ssh|ms-|0.118.0|\n|remote-ssh-edit|ms-|0.87.0|\n|signageos-vscode-sops|sig|0.9.2|\n|vim|vsc|1.29.0|\n|vscode-docker|ms-|1.29.4|\n|vscode-js-profile-table|ms-|1.0.10|\n|vscode-pylance|ms-|2025.3.2|\n|vscode-remote-extensionpack|ms-|0.26.0|\n|vscode-yaml|red|1.17.0|\n|xml|Dot|2.5.1|\n\u003c/details>\n\u003cdetails>\n\u003csummary>System Info\u003c/summary>\n\n|Item|Value|\n|---|---|\n|CPUs|Apple M1 Max (10 x 2400)|\n|GPU Status|2d_canvas: enabled\u003cbr>canvas_oop_rasterization: enabled_on\u003cbr>direct_rendering_display_compositor: disabled_off_ok\u003cbr>gpu_compositing: enabled\u003cbr>multiple_raster_threads: enabled_on\u003cbr>opengl: enabled_on\u003cbr>rasterization: enabled\u003cbr>raw_draw: disabled_off_ok\u003cbr>skia_graphite: disabled_off\u003cbr>video_decode: enabled\u003cbr>video_encode: enabled\u003cbr>webgl: enabled\u003cbr>webgl2: enabled\u003cbr>webgpu: enabled\u003cbr>webnn: disabled_off|\n|Load (avg)|4, 4, 6|\n|Memory (System)|32.00GB (0.08GB free)|\n|Process Argv||\n|Screen Reader|no|\n|VM|0%|\n\u003c/details>\n\u003c!-- generated by issue reporter -->","author":{"url":"https://github.com/rsporny","@type":"Person","name":"rsporny"},"datePublished":"2025-03-28T08:37:17Z","url":"https://github.com/microsoft/vscode-python/issues/24935"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d46c98bc-b898-b73b-92e2-0029cccbb73a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84E8:1148D3:B0CBAC:E36511:6B00F938 |
| html-safe-nonce | ede3a7388e37434f5f6634937ba81b8b0e56124bf6224eeac5aa41d02497ac7f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEU4OjExNDhEMzpCMENCQUM6RTM2NTExOjZCMDBGOTM4IiwidmlzaXRvcl9pZCI6IjQwNDU1NTQ5OTkyNzM1MTk0MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dd2295ba42713c5d43b3dfdd216256bac5efd0dbe97e5472da9debaddd3bead6 |
| hovercard-subject-tag | issue:2955403120 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/24935/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b66d7b247e65bdb67565ed0ace2fa8e7e0664eafd7721b82eeef9e95519876b/microsoft/vscode-python/issues/24935 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b66d7b247e65bdb67565ed0ace2fa8e7e0664eafd7721b82eeef9e95519876b/microsoft/vscode-python/issues/24935 |
| og:image:alt | Type: Bug Behaviour Test Explorer is not reporting test status (red/green/skipped icons) when executed test is annotated with @pytest.mark.xdist_group(" |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rsporny |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width