FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add python-environment's project support for pytest execution by eleanorjboyd · Pull Request #25772 · microsoft/vscode-python · GitHub

Add python-environment's project support for pytest execution - #25772

Merged
Eleanor Boyd (eleanorjboyd) merged 11 commits into
microsoft:test-project-supportfrom
eleanorjboyd:instant-eagle-pytest-execution
Feb 9, 2026
Merged

Add python-environment's project support for pytest execution#25772
Eleanor Boyd (eleanorjboyd) merged 11 commits into
microsoft:test-project-supportfrom
eleanorjboyd:instant-eagle-pytest-execution

Conversation

Copy link
Copy Markdown
Member

No description provided.

Eleanor Boyd (eleanorjboyd) added feature-request Request for new features or functionality skip tests Updates to tests unnecessary skip-issue-check labels Feb 6, 2026
Comment thread src/client/testing/common/types.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

This PR adds project-aware pytest execution support to the test controller flow by wiring Python Environments “projects” into execution/debugging, and introducing shared helpers + unit tests to validate the new behavior in multi-project workspaces.

Changes:

  • Add project-based test execution orchestration (executeTestsForProjects, grouping test items by owning project, per-project execution).
  • Pass project context into pytest execution and debugging (env var PROJECT_ROOT_PATH, LaunchOptions.project, project-derived Python path/session naming).
  • Add centralized test mocks and new/updated unit tests covering project execution and debug-session lifecycle handling.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/client/testing/testController/common/projectTestExecution.ts New project-based execution utilities (grouping, project lookup, coverage callback setup).
src/client/testing/testController/controller.ts Routes pytest runs through project-based execution when projects are registered.
src/client/testing/testController/pytest/pytestExecutionAdapter.ts Sets project execution environment (PROJECT_ROOT_PATH) and passes project into debug launch options; uses project environment when available.
src/client/testing/testController/unittest/testExecutionAdapter.ts Updates execution adapter signature and adds logging around new parameters.
src/client/testing/common/debugLauncher.ts Supports concurrent debug sessions via a per-launch marker; uses project name/python path when available.
src/client/testing/common/types.ts Extends LaunchOptions to include optional project metadata.
src/test/testing/testController/testMocks.ts Adds reusable mocks for project adapters, dependencies, and test items.
src/test/testing/testController/pytest/pytestExecutionAdapter.unit.test.ts Adds unit tests validating project env var + debug launch options behavior for pytest.
src/test/testing/testController/common/projectTestExecution.unit.test.ts Adds comprehensive unit tests for grouping, project resolution, execution orchestration, and coverage callback behavior.
src/test/testing/common/debugLauncher.unit.test.ts Updates and adds tests for multi-session debug lifecycle tracking and project-specific config naming.

Eleanor Boyd (eleanorjboyd) merged commit 3b87651 into microsoft:test-project-support Feb 9, 2026
78 of 82 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality skip tests Updates to tests unnecessary skip-issue-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL