Skip to content

Add e2e debug mode tests for pytest and unittest execution adapters - #26322

Open
Bhuvansh (BHUVANSH855) wants to merge 1 commit into
microsoft:mainfrom
BHUVANSH855:add-e2e-debug-tests-22171
Open

Bhuvansh (BHUVANSH855) wants to merge 1 commit into
microsoft:mainfrom
BHUVANSH855:add-e2e-debug-tests-22171

Conversation

@BHUVANSH855

Copy link
Copy Markdown

Fixes #22171

Summary

Adds two end-to-end tests to testingAdapter.test.ts covering TestRunProfileKind.Debug, which previously had zero test coverage:

  • pytest debug mode verifies debugLauncher.launchDebugger is called once with correct LaunchOptions: testProvider=pytest, cwd set, and --capture=no/-s injected (prevents pytest swallowing output in debug)
  • unittest debug mode verifies debugLauncher.launchDebugger is called once with correct LaunchOptions: testProvider=unittest, cwd set, runTestIdsPort set (required for test ID forwarding to debug session)
@BHUVANSH855

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant