unit-tests

Run VS Code unit tests with file-level and test-name filtering.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/aadorian/VSCode_Readme --skill unit-tests-aadorian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unit-tests
Source: https://github.com/aadorian/VSCode_Readme/tree/main/education/engineering-tooling/github/copilot-skills/unit-tests
Command: npx skills add https://github.com/aadorian/VSCode_Readme --skill unit-tests-aadorian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of finding and running the right VS Code unit tests, especially when you need to isolate failures, verify a fix, or collect coverage without manually navigating the repo’s test tooling.

Core Features & Use Cases

  • Targeted test execution: Run a single test file or narrow by test name to debug failures quickly.
  • Cross-platform fallback: Use the repo’s platform-specific test scripts on macOS, Linux, or Windows when the structured test runner is unavailable.
  • Focused developer workflows: Support coverage runs, glob-based selection, and long-running test timeout adjustments for editor, extension, and core test areas.

Quick Start

Use the unit-tests skill to run the specified VS Code test file or named test case and summarize the results clearly.

Frequently Asked Questions about unit-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a single VS Code unit test by file name or test name?

Run VS Code unit tests with file-level and test-name filtering by using the --grep and --runGlob options, allowing you to isolate failures and verify fixes quickly without executing the entire test suite.

Can I collect code coverage when running targeted Mocha tests in VS Code?

Yes, you can collect code coverage during targeted Mocha test runs by applying the --coverage option, which integrates coverage collection into your filtered test execution workflows.

Does this VS Code test runner work on macOS, Linux, and Windows?

Yes, the VS Code test runner supports cross-platform execution on macOS, Linux, and Windows, utilizing platform-specific test scripts as a fallback when the structured runTests tool is unavailable.

What do I need to run VS Code unit tests with the runTests tool?

To run VS Code unit tests, you need the runTests tool or platform test scripts, compiled JavaScript output, and support for --run, --grep, --runGlob, --coverage, and timeout options.

How do I adjust timeouts for long-running VS Code unit tests?

Adjust timeouts for long-running VS Code unit tests by configuring the timeout options, ensuring editor, extension, and core test areas have sufficient execution time without prematurely failing.