-
Notifications
You must be signed in to change notification settings - Fork 73
Home
VSCode Extension Tester is a package designed to help you run UI tests for your VS Code extensions using selenium-webdriver. Simply install it into your extension devDependencies to get started:
npm install --save-dev vscode-extension-tester
As such there are two major parts to the project:
The first part automates all the steps necessary to launch UI tests of your VSCode extension:
- Download a test instance of VS Code
- Download the appropriate version of ChromeDriver
- Package and install your extension into the VS Code instance
- Launch the VS Code instance using webdriver
- Run your tests
Find more about the test setup here. Once the setup is complete, check out the sample test file for inspiration.
Once your tests are set up and running, you may use the convenient page object API to handle parts of VSCode without sifting through its DOM. Though, if using pure webdriver is preferred, all the webdriver APIs are exported as well.
Find documentation about the Page Object APIs here.