Dev & Engineering ✓ Microsoft · Official

VS Code Unit Test Runner

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

55/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 194k
Last updated
11d ago
License
MIT
unit-testingmochaelectrontypescript
+3test-filteringcode-coveragedebugging

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.

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

How do you install this skill?

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.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • Electron
  • Mocha

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.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/microsoft/vscode.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/.github/skills/unit-tests" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Run the unit test named should split lines in src/vs/editor/test/common/model.test.ts.
  • should split lines

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.

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 does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
VS Code Unit Test Runner this page ✓ Microsoft · Official 55 · Use with care ★ 194k 11d ago MIT
VS Code Integration Test Runner ✓ Microsoft · Official 52 · Use with care ★ 194k 11d ago MIT
VS Code Smoke Test Failure Diagnosis ✓ Microsoft · Official 45 · Not recommended ★ 194k 11d ago MIT
GitHub Copilot SDK Upgrade Assistant ✓ Microsoft · Official 28 · Not recommended ★ 194k 11d ago MIT
Vibeyard UI Development Skill 56 · Use with care ★ 1.4k 1mo ago MIT

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
55/ 100 5-point scale 2.8 / 5
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.
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.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 5b3e1be7be9e Review evidence[1][2][3][4][5][6][7][8][9][10][11]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

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.

★ 194k FS 52 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Failure Diagnosis

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

★ 194k FS 45 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

GitHub Copilot SDK Upgrade Assistant

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

★ 194k FS 28 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Assistant

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

★ 194k FS 53 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

Tool Rename Compatibility Check

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

★ 194k FS 63 Recommended 11d ago
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.

★ 194k FS 54 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Chat Performance Lab

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

★ 194k FS 53 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Crash Dump Symbolicator

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

★ 194k FS 53 Use with care 11d ago
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.

★ 194k FS 52 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Telemetry Error Fix Guide

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

★ 194k FS 52 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

Memory Leak Audit

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

★ 194k FS 52 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

Code OSS Development Log Viewer

Locate and inspect the latest Code OSS development logs.

★ 194k FS 51 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Hygiene Checks

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

★ 194k FS 48 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Configuration Policy Maintainer

Standardize VS Code policy registration, export, and validation.

★ 194k FS 59 Recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Integrated Browser Architecture

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

★ 194k FS 56 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

Run Command Builder

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

★ 194k FS 48 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

Anthropic SDK Upgrade Assistant

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

★ 194k FS 43 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

V8 Heap Snapshot Analyzer

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

★ 194k FS 40 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Context7 Project Bootstrapper

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

★ 194k FS 36 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Session Code Review

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

★ 194k FS 51 Use with care 11d ago

Related skills