Dev & Engineering ✓ Microsoft · Official unit-testingmochaelectrontypescripttest-filteringcode-coveragedebugging

VS Code Unit Test Runner

Run VS Code repository unit tests by file, test name, or compiled-output glob.

FollowSkills review · FSRS-2.0
Use with care
55/ 100 5-point scale 2.8 / 5
1 2 3 4 5 6
1Trust18 / 25 · 3.6/5

The skill only directs test execution, requests no credentials or secrets, and distinguishes a preferred tool from local script fallbacks; however, it does not explain Electron downloads, network dependencies, user confirmation, data flow, rollback, or isolation, so points are deducted.

2Reliability8 / 20 · 2.0/5

The instructions are internally consistent and cover runTests, macOS/Linux and Windows scripts, filtering, coverage, timeouts, and the compilation prerequisite; however, there is no executable reproduction, compatibility matrix, or diagnostic handling for abnormal arguments and download failures. Under static calibration, the score is capped at 10.

3Adaptability10 / 15 · 3.3/5

The audience and main inputs are reasonably clear, including tool-versus-CLI fallback, platform differences, and the unit/integration-test boundary; however, runTests availability, additional non-fit cases, output format, Chinese-language support, and operation under restricted networks are not specified.

4Convention7 / 15 · 2.3/5

The YAML metadata, progressive sections, command examples, aliases, and common pitfall note are clear, while the repository supplies an MIT license, version, and official maintenance context; however, the skill itself lacks maintainer ownership, update path, changelog, dependency-installation notes, and FAQs, warranting only a mid-range score.

5Effectiveness7 / 15 · 2.3/5

The skill can directly help users select a runner or script and construct common commands, covering files, names, globs, coverage, and timeouts; however, examples are conceptual rather than verified outputs, and result format, failure handling, and comparative benefit over manual execution are not established. Static calibration caps this at 7.

6Verifiability5 / 10 · 2.5/5

The commands, parameters, and compilation prerequisite are somewhat auditable, and the repository includes tests and CI material; however, the supplied workflows do not directly cover this unit-test skill, with no evidence covering runTests or scripts/test.sh key paths and no third-party reproduction. Static calibration caps this at 5.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 5b3e1be7be9e
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • Test execution may download Electron and depend on network access; no mirror, cache, or offline procedure is documented for restricted or mainland-China network environments.
  • The runTests interface has no checkable availability guidance, output example, or failure diagnostics; the conceptual example does not verify actual parameter behavior.
  • Compilation or a running watch task is required, but the skill does not explain how to verify fresh build output or handle download, compilation, and test failures.
See the full review method →

What does this skill do, and when should you use it?

This skill is for running unit tests in the microsoft/vscode repository. It prefers the runTests tool when available because it provides structured pass/fail details, and otherwise uses the platform-specific repository scripts. It supports filtering by test file, test name, and glob, as well as coverage and timeout options. Tests run against compiled JavaScript output, while integration tests are outside the scope of scripts/test.sh and scripts/test.bat.

It first uses the runTests tool with absolute test-file paths, test-name filters, or coverage mode. When that tool is unavailable, it runs ./scripts/test.sh on macOS/Linux or .\scripts\test.bat on Windows. The skill can select files with positional paths or --run, filter full test titles with --grep, -g, or -f, match compiled .js files with --runGlob, --glob, or --runGrep, enable --coverage, and set --timeout. The scripts download Electron when needed and launch the Mocha test runner.

  1. A VS Code developer wants to verify one editor-model test file and runs only that source file.
  2. A developer is investigating one test title and combines --run with --grep to narrow execution.
  3. A feature-area maintainer wants to run all compiled test files matching a glob and uses --runGlob.
  4. A developer needs a coverage report and adds --coverage to the target test command.
  5. A long-running test requires a different Mocha timeout and uses --timeout.
  6. A developer working on integration tests switches to scripts/test-integration.sh or scripts/test-integration.bat instead of the unit-test scripts.

What are this skill's strengths and limitations?

Pros
  • Covers the runTests tool plus separate macOS/Linux and Windows script workflows.
  • Supports narrowing execution by file, test title, or compiled-output glob.
  • Includes documented coverage and timeout options.
  • The repository source is licensed under MIT.
Limitations
  • There is no evidence of a standalone installation process or separate package.
  • Tests require current compiled JavaScript output; stale output can cause failures.
  • The documented unit-test scripts do not run integration tests, which require other scripts or skills.
  • The source does not identify which clients provide runTests or show a sample structured report.

How do you install this skill?

The skill is located at .github/skills/unit-tests/SKILL.md in the microsoft/vscode repository. The source does not provide a standalone installation command or separate package; obtain the repository and configure an Agent Skills-compatible client to load this file. The repository README says the collection contains 61 skills and that its source code is licensed under MIT, but this profile covers only unit-tests.

How do you use this skill?

In an obtained VS Code repository, ask for something such as “Run the unit test named should split lines in src/vs/editor/test/common/model.test.ts.” If runTests is available, use it with the file and test-name filters; otherwise run ./scripts/test.sh --run src/vs/editor/test/common/model.test.ts --grep "should split lines" from the repository root. On Windows, use .\scripts\test.bat --run src\vs\editor\test\common\model.test.ts --grep "should split lines". Before running, ensure the VS Code - Build watch task is active or compilation has completed.

FAQ

Does this skill cost anything?
The source lists no fee. The repository README states that the Code - OSS source is available under the MIT license, but it gives no separate pricing or standalone package information for this skill.
Why can tests fail when the source code is correct?
Tests run against compiled JavaScript output. The source warns that the VS Code - Build watch task should be running or compilation should be complete, because stale output is a common failure cause.
Can it run integration tests?
Not through the documented scripts/test.sh or scripts/test.bat workflow. Tests ending in .integrationTest.ts or located in extensions/ should use scripts/test-integration.sh or scripts/test-integration.bat.
How can I filter the tests?
You can select test files, match full test titles, or use a glob against compiled .js files. The commands also support coverage collection and timeout overrides.

More skills from this repository

All from microsoft/vscode

Dev & Engineering ✓ Microsoft · Official

VS Code Integration Test Runner

Run and filter VS Code repository integration tests with the correct platform scripts.

Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Failure Diagnosis

Diagnose and validate intermittent VS Code Electron smoke-test failures in Azure DevOps.

Dev & Engineering ✓ Microsoft · Official

GitHub Copilot SDK Upgrade Assistant

Upgrade and validate @github/copilot in the VS Code Copilot Chat project.

Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Assistant

Run, filter, and debug VS Code end-to-end smoke tests.

Dev & Engineering ✓ Microsoft · Official

Tool Rename Compatibility Check

Protect existing prompts and tool configurations when built-in tools are renamed.

Dev & Engineering ✓ Microsoft · Official

Code OSS Launch & Debug

Launch a built-from-source VS Code with isolated profiles, Playwright control, and multi-process debugging ports.

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Performance Lab

Benchmark chat rendering and detect memory growth across VS Code builds.

Dev & Engineering ✓ Microsoft · Official

VS Code Crash Dump Symbolicator

Turn native VS Code crash dumps into readable backtraces with method names.

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Customizations Editor Skill

Guides developers through safe changes and testing for VS Code’s chat customization management UI.

Dev & Engineering ✓ Microsoft · Official

VS Code Telemetry Error Fix Guide

Trace unhandled telemetry errors to invalid-data producers instead of masking the crash site.

Dev & Engineering ✓ Microsoft · Official

Memory Leak Audit

Systematically find and fix listener, lifecycle, and disposable leaks in VS Code code.

Dev & Engineering ✓ Microsoft · Official

Code OSS Development Log Viewer

Locate and inspect the latest Code OSS development logs.

Dev & Engineering ✓ Microsoft · Official

VS Code Hygiene Checks

Catch VS Code commit-blocking style and hygiene issues before the work is declared complete.

Dev & Engineering ✓ Microsoft · Official

VS Code Configuration Policy Maintainer

Standardize VS Code policy registration, export, and validation.

Dev & Engineering ✓ Microsoft · Official

VS Code Integrated Browser Architecture

A practical architecture guide for safely changing VS Code's cross-process integrated browser.

Dev & Engineering ✓ Microsoft · Official

Run Command Builder

Configure and update commands shown in a VS Code Agent Session's Run button.

Dev & Engineering ✓ Microsoft · Official

Anthropic SDK Upgrade Assistant

Upgrade Anthropic SDK packages methodically while checking API changes, compilation, and Claude-focused tests.

Dev & Engineering ✓ Microsoft · Official

V8 Heap Snapshot Analyzer

Trace V8 heap retention paths to diagnose leaks and GC-surviving objects.

Dev & Engineering ✓ Microsoft · Official

Context7 Project Bootstrapper

Build a complete VS Code project scaffold using current library documentation.

Dev & Engineering ✓ Microsoft · Official

Session Code Review

Review the current session's code changes and place actionable findings directly on the relevant lines.

Related skills