Visual Studio Code Extension Tester
UI Testing Framework for Visual Studio Code.
Features • Requirements • Usage • Documentation • Known Issues
Extension Tester is a package that is designed to help you run UI tests for your Visual Studio Code extensions using selenium-webdriver.
Features
- Download a test instance of Visual Studio Code
- Download the appropriate version of ChromeDriver
- Package and Install your extension into downloaded VS Code instance
- Launch the VS Code instance using Selenium Webdriver
- Run your tests
Requirements
- Visual Studio Code 1.37+
- NodeJS 16
- Supported Operating Systems
- Linux
- Windows
- macOS (platform specific limitations, more in Known Issues)
Usage
Simply install our package into your extension devDependencies to get started:
npm install --save-dev vscode-extension-tester@latest
Make sure to check out the documentation for detailed instructions.
Documentation
Our full documentation is located in GitHub Wiki. Included are details about Page Object API and how to setup Mocha tests information.
Issues
Something is not working properly? In that case, feel free to open issues, add feature requests, report bugs, etc.
Get Involved
If you'd like to help us get better, we appreciate it! Check out our Contribution Guide on how to do that.
Known Issues
We have prepared few answers for most common problems community reported. See Known Issues