Skip to content

Tags: andravin/vscode-python

Tags

custom-testing-2026-02-14

Toggle custom-testing-2026-02-14's commit message
Merge fix/test-explorer-exclude-filtering: respect TestRunRequest.exc…

…lude (PR microsoft#25743)

v2026.0.0-custom-testing

Toggle v2026.0.0-custom-testing's commit message
Merge branch 'feature/pytest-marks-as-tags-release' into release/cust…

…om-testing-improvements

v2026.0.0-pytest-marks

Toggle v2026.0.0-pytest-marks's commit message
feat(testing): expose pytest marks as tags in Test Explorer

Extract pytest marks (e.g., @pytest.mark.slow, @pytest.mark.integration)
during test discovery and expose them as VS Code TestTags with IDs like
"mark.slow", "mark.integration". This enables filtering tests by
marks in the Test Explorer UI using @python-tests:mark.slow syntax.

Changes:
- Add tags field to TestItem TypedDict in pytest plugin
- Extract marks from test_case.own_markers in create_test_node()
- Add tags field to DiscoveredTestItem TypeScript type
- Create TestTag objects from marks in populateTestTree()

Fixes microsoft#20350

Co-Authored-By: Claude Opus 4.5 <[email protected]>