Files
vscode/test/sanity
Raymond Zhao 1251d8b737 chore: bump native-watchdog (#287848)
* chore: bump native-watchdog

* Rename more instances

* chore: update Debian x64 dep list
2026-01-15 15:34:13 +09:00
..
2026-01-15 15:34:13 +09:00

VS Code Release Sanity Check Tests

Overview

Automated end-to-end release sanity tests for published VS Code builds. These tests verify critical functionality across different platforms and installation methods, ensuring that published builds meet quality standards before reaching end users.

See Sanity Check wiki page for more details on sanity testing.

Usage

Many tests will use the underlying platform to install and verify basic VS Code functionality. Such tests will need to be run on the corresponding target OS/virtual machine and will fail if ran outside. Use -g or -f command-line options to filter tests to match the host platform.

Command-Line Options

Option Alias Description
--commit <commit> -c The commit SHA to test (required)
--quality <quality> -q The quality to test (required, "stable", "insider" or "exploration")
--no-cleanup Do not cleanup downloaded files after each test
--grep <pattern> -g Only run tests matching the given regex pattern
--fgrep <string> -f Only run tests containing the given string
--help -h Show help message

Example

To run CLI tests for all platforms on given commit of Insiders build, from the root directory run:

npm run sanity-test -- --commit 19228f26df517fecbfda96c20956f7c521e072be --quality insider -g "cli*"

References

The following public documentation pages provide details on end-user VS Code setup scenarios.