-
Notifications
You must be signed in to change notification settings - Fork 29k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extensionHost
launch config should support .vscode-test.js
files natively
#199211
extensionHost
launch config should support .vscode-test.js
files natively
#199211
Comments
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 |
Version: 1.87.0-insider (system setup) |
Not sure if this is a verification found but the args in our mjs are not being applied: part of mjs: export default defineConfig({
files: __dirname + '/dist/test-extension.js',
version: 'insiders',
launchArgs: [
'--disable-extensions',
'--user-data-dir=' + tempdir,
],
mocha: {
ui: 'tdd',
color: true,
forbidOnly: !!process.env.CI,
timeout: 5000
}
}); 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. |
@karthiknadig you need the nightly js debug or wait til tomorrow's insiders |
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.
The text was updated successfully, but these errors were encountered: