The `wdio-vscode-service` is a WebdriverIO service designed for comprehensive end-to-end testing of Visual Studio Code extensions. It currently stands at version 6.1.4 and receives regular updates, indicating an active development cycle. This service streamlines the testing process by automatically handling the installation of specified VSCode versions (stable, insiders, or specific releases) and downloading the corresponding Chromedriver. It differentiates itself by providing direct access to the VSCode API within tests, enabling robust interaction with the IDE. Furthermore, it supports testing both desktop and web extensions, and it comes with pre-bootstrapped page objects tailored to various VSCode versions. This project builds upon the concept of `vscode-extension-tester` but re-imagines it for the WebdriverIO ecosystem, offering a more integrated and familiar experience for WebdriverIO users.
npm install wdio-vscode-serviceVerified import paths — ran on the pinned version, not inferred.
This quickstart configuration demonstrates how to integrate the `wdio-vscode-service` into a TypeScript-based WebdriverIO project. It specifies testing against a particular VSCode version, applies custom user settings, and includes the critical `wdio:enforceWebDriverClassic` option for WebdriverIO v9 compatibility. It also highlights where to define the extension path and other service-specific options.
Review the WebdriverIO upgrade guides for driver setup and adjust your `wdio.conf.ts` accordingly. Ensure your test suites account for potential changes in `executeWorkbench` behavior. Upgrade to v6.0.0 or later to benefit from the bug fixes.
Add `'wdio:enforceWebDriverClassic': true` to the `capabilities` object in your `wdio.conf.ts` file.
Ensure your `webdriverio` peer dependency is `^8.14.0` or higher when targeting VSCode v1.86.0+ in your tests.
Upgrade `wdio-vscode-service` to version `6.1.4` or higher to utilize robust semver comparison for `browserVersion`, ensuring accurate VSCode version targeting.
Upgrade to `wdio-vscode-service` version `6.0.2` or higher to resolve known issues with the `cachePath` option. Verify your `cachePath` configuration points to a writable and accessible directory.
Upgrade `wdio-vscode-service` to version `6.0.0` or later to resolve this specific error, which was patched in that release.
Upgrade `wdio-vscode-service` to version `6.0.3` or later, which includes a fix to prevent these connection closed errors.
Upgrade `wdio-vscode-service` to version `6.0.1` or later to ensure updated WebdriverIO dependencies and correct Chromedriver download URLs.