Launching VS Code Extension Tester tests
Marian Lorinc edited this page Mar 25, 2022
·
1 revision
Launching VS Code Extension tester tests ware one of the motivation reasons to create this library. Currently it is possible but there some limitations:
- System limitations: it is not possible to run tests which use
fs
,child_process
or any system dependant library. - Some page objects do not share the same UI so they cannot be easily implemented for Eclipse Theia editors.
- Not all page objects are implemented.
- Code itself which work in Visual Studio Code might not work in slower instances of Eclipse Che. But this problem can be worked around.
To launch tests on any of supported editors, first the tester package must be installed using:
npm install theia-extension-tester --save-dev
After that, please follow instructions in Getting started with Eclipse Che guide or Getting started with Eclipse Theia guide. In both guides JavaScripts imports do not have to be changed. Imports are handled by the tester
package itself e.g. import "vscode-extension-tester" will be aliased to import "theia-extension-tester" automatically
.