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

Unittest discovery with py-env Projects Support by eleanorjboyd · Pull Request #25767 · microsoft/vscode-python · GitHub

Unittest discovery with py-env Projects Support - #25767

Merged
Eleanor Boyd (eleanorjboyd) merged 37 commits into
microsoft:test-project-supportfrom
eleanorjboyd:instant-eagle-unittest-discovery
Feb 6, 2026
Merged

Unittest discovery with py-env Projects Support#25767
Eleanor Boyd (eleanorjboyd) merged 37 commits into
microsoft:test-project-supportfrom
eleanorjboyd:instant-eagle-unittest-discovery

Conversation

Copy link
Copy Markdown
Member

No description provided.

- Created ProjectAdapter and WorkspaceDiscoveryState interfaces
- Added project utility functions (ID generation, scoping, nested project detection)
- Updated PythonResultResolver to support optional projectId parameter
- Modified populateTestTree to create project-scoped test IDs
- Updated TestDiscoveryHandler to handle project-scoped error nodes

Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
- Added project-based state maps (workspaceProjects, vsIdToProject, fileUriToProject, projectToVsIds)
- Implemented discoverWorkspaceProjects() to query Python Environment API
- Created createProjectAdapter() to build ProjectAdapter from PythonProject
- Added createDefaultProject() for backward compatibility
- Imported necessary types from environment API
- Added flag to enable/disable project-based testing

Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
- Modified activate() to check useProjectBasedTesting flag
- Calls discoverWorkspaceProjects() for each workspace when enabled
- Populates workspaceProjects map with discovered projects
- Created activateLegacyWorkspace() for backward compatibility
- Falls back to legacy mode if project discovery fails
- Maintains full backward compatibility with flag disabled

Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
Eleanor Boyd (eleanorjboyd) changed the title Instant eagle unittest discovery Unittest discovery with py-env Projects Support Feb 6, 2026
Eleanor Boyd (eleanorjboyd) added feature-request Request for new features or functionality skip-issue-check labels Feb 6, 2026
Eleanor Boyd (eleanorjboyd) marked this pull request as ready for review February 6, 2026 21:29
Eleanor Boyd (eleanorjboyd) merged commit 5104ff6 into microsoft:test-project-support Feb 6, 2026
44 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-issue-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL