-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
run VS Code api unit tests against Theia #4224
Comments
On testing VS Code extensions: https://code.visualstudio.com/api/working-with-extensions/testing-extension |
Got them running: 4 passing, 22 falling for
|
In order to run:
{
"name": "Launch VS Code Tests",
"type": "node",
"request": "launch",
"args": [
"${workspaceFolder}/examples/browser/src-gen/backend/main.js",
"${workspaceFolder}/plugins/vscode-api-tests/testWorkspace",
"--port", "3030",
"--hostname", "0.0.0.0",
"--extensionTestsPath=${workspaceFolder}/plugins/vscode-api-tests/out/singlefolder-tests",
"--hosted-plugin-inspect=9339"
],
"env": {
"THEIA_DEFAULT_PLUGINS": "local-dir:${workspaceFolder}/plugins"
},
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/../.js"
]
}
|
First #4226 should be fixed, otherwise the plugin system does not reconginze VS Code extension and does not install proper APIs stubs. Hopefully after that there would be much more passing tests. |
Fixed installation of VS Code apis for test, the result is not much better 😞 5 passing, 21 failing |
There is a VS Code extension to test implementation of VS Code APIs: https://github.com/Microsoft/vscode/tree/master/extensions/vscode-api-tests
It would be cool to run them against Theia as well.
Here launch configurations https://github.com/Microsoft/vscode/blob/98e5b5c0a30591571b5a39aa921cc3f27cea27c9/.vscode/launch.json#L58-L114 to run them.
Here is an issue to support
extensionHost
configuration for VS Code extension development: #4016The text was updated successfully, but these errors were encountered: