-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Investigate testing DAP features #14025
Comments
[1] The next step is to create a test suite like VS Code does [3] and run it using launch configuration [4] [3] https://github.com/microsoft/vscode/tree/master/extensions/vscode-api-tests |
The work is done here https://github.com/theia-ide/theia/tree/ab/theia-tests/packages/theia-tests Workflow is the following:
{
"name": "Launch Theia Tests",
"type": "node",
"request": "launch",
"args": [
"${workspaceFolder}/examples/browser/src-gen/backend/main.js",
"${workspaceFolder}/packages/theia-tests/testWorkspace",
"--port",
"3030",
"--hostname",
"0.0.0.0"
],
"env": {
"THEIA_DEFAULT_PLUGINS": "local-dir:${workspaceFolder}/plugins"
},
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/../.js"
]
}
Implementation details.Tests are run when test environment is set [1]. [1] https://github.com/theia-ide/theia/blob/ab/theia-tests/packages/theia-tests/src/browser/theia-tests-frontend-module.ts TODO
|
Investigate writing automated tests as requested in #13897
The goal of this issue is to come up with a way to write tests for VS Code extensions that provide debug adapters.
We'd have to be able to script
I would prefer to write the scripts based on a API, not based on UI interactions
The text was updated successfully, but these errors were encountered: