You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
extensionHost launch config should support .vscode-test.js files natively #199211
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded
The new .vscode-test.js format and test runner are awesome, but some folks still like to use the regular ol' extensionHost launch config to run & debug tests.
We should support this new way in the launch config as well so that we don't have to implement our own runner in order to do this.
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
feat: support running extension test CLI from launch.json
feat: support running extension test CLI from launch.json (#1941)
connor4312 commentedon Feb 21, 2024
You should be able to reference a test config file using this format in your launch.json:
The sample works: https://github.com/microsoft/vscode-extension-samples/tree/main/helloworld-test-cli-sample
karthiknadig commentedon Feb 21, 2024
It does not seem to pick up:

Version: 1.87.0-insider (system setup)
Commit: ee69e28
Date: 2024-02-21T05:47:47.750Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22621
TylerLeonhardt commentedon Feb 21, 2024
Not sure if this is a verification found but the args in our mjs are not being applied:
part of mjs:
config:
{ "name": "Extension tests", "type": "extensionHost", "request": "launch", "testConfiguration": "${workspaceFolder}/.vscode-test.mjs", "sourceMaps": true, "smartStep": true, "internalConsoleOptions": "openOnSessionStart", "outFiles": [ "${workspaceFolder}/dist/**/*.js", "!**/node_modules/**" ], },Let me know if you need more details. This is a private repo FYI.
TylerLeonhardt commentedon Feb 21, 2024
Karthik Nadig (@karthiknadig) you need the nightly js debug or wait til tomorrow's insiders
fix: include launch args from test config
fix: include launch args from test config (#1946)