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

Refactor pytest and unittest test discovery by eleanorjboyd · Pull Request #25599 · microsoft/vscode-python · GitHub

Refactor pytest and unittest test discovery - #25599

Merged
Eleanor Boyd (eleanorjboyd) merged 9 commits into
microsoft:mainfrom
eleanorjboyd:familiar-moth
Nov 29, 2025
Merged

Refactor pytest and unittest test discovery#25599
Eleanor Boyd (eleanorjboyd) merged 9 commits into
microsoft:mainfrom
eleanorjboyd:familiar-moth

Conversation

Copy link
Copy Markdown
Member

cleanup to assist with future changes

Eleanor Boyd (eleanorjboyd) added skip tests Updates to tests unnecessary skip-issue-check debt Code quality issues labels Nov 21, 2025
Eleanor Boyd (eleanorjboyd) changed the title Refactor pytest test discovery Refactor pytest and unittest test discovery Nov 21, 2025

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 refactors the pytest and unittest test discovery implementations to improve code organization and reduce duplication. The changes extract common functionality into helper modules and consolidate process handling logic.

  • Extracted environment configuration and command building logic into framework-specific helper modules
  • Created shared discovery helper functions for process event handling and cancellation cleanup
  • Restructured discovery adapter methods to use a more consistent pattern across both frameworks

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 16 comments.

Show a summary per file
File Description
src/client/testing/testController/unittest/unittestHelpers.ts New helper module with environment setup and command building for unittest discovery
src/client/testing/testController/unittest/testDiscoveryAdapter.ts Refactored discovery adapter to use extracted helpers and new shared process handlers
src/client/testing/testController/pytest/pytestHelpers.ts New helper module with environment setup, symlink handling, and command building for pytest discovery
src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts Refactored discovery adapter to use extracted helpers and new shared process handlers
src/client/testing/testController/common/discoveryHelpers.ts New shared module providing process event handlers and cancellation cleanup logic for both frameworks

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…r.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Eleanor Boyd (eleanorjboyd) marked this pull request as ready for review November 21, 2025 17:40
vs-code-engineering Bot added this to the November 2025 milestone Nov 21, 2025
Eleanor Boyd (eleanorjboyd) merged commit f96d910 into microsoft:main Nov 29, 2025
47 checks passed
Eleanor Boyd (eleanorjboyd) added a commit to eleanorjboyd/vscode-python that referenced this pull request Dec 3, 2025
cleanup to assist with future changes

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

debt Code quality issues skip tests Updates to tests unnecessary skip-issue-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL