Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/test/sanity/README.md
4770 views

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

OptionAliasDescription
--commit <commit>-cThe commit SHA to test (required)
--quality <quality>-qThe quality to test (required, "stable", "insider" or "exploration")
--no-cleanupDo not cleanup downloaded files after each test
--grep <pattern>-gOnly run tests matching the given regex pattern
--fgrep <string>-fOnly run tests containing the given string
--help-hShow 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.