integration-tests

Runs VS Code integration tests via test-integration scripts with filtering options.

Updated Apr 28, 2026
Ready to run
npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill integration-tests-cokistudios
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: integration-tests
Source: https://github.com/CokiStudios/cokistudios.github.io/tree/main/vscode-src/.github/skills/integration-tests
Command: npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill integration-tests-cokistudios

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running integration tests in the VS Code repository involves two distinct test categories (node.js integration tests and extension host tests) with different scripts, filters, and behaviors, making it easy to invoke the wrong runner or misapply arguments. ## Core Features & Use Cases - Dual Test Category Support: Distinguishes node.js integration tests (.integrationTest.ts under src/) from extension host tests embedded in built-in extensions under extensions/. - Flexible Filtering: Supports --run for specific files, --runGlob for path-based file selection, --grep for test name filtering, and --suite for selecting extension host suites like git, typescript, or api-folder. - Use Case: A developer modifying the search service can run ./scripts/test-integration.sh --run src/vs/workbench/services/search/test/browser/search.integrationTest.ts to execute only the relevant integration test file instead of the full suite. ## Quick Start Run the VS Code integration tests for the Git extension suite using the test-integration script with the suite filter.

Frequently Asked Questions about integration-tests

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

FAQPage Schema
How do I run integration tests in the VS Code repository?▼

Run ./scripts/test-integration.sh on macOS/Linux or .\scripts\test-integration.bat on Windows. Without filters, both node.js integration tests and all extension host test suites execute sequentially.

What is the difference between VS Code unit tests and integration tests?▼

Unit tests use .test.ts files and run via scripts/test.sh, while integration tests use .integrationTest.ts files and extension host tests run via scripts/test-integration.sh. The test.sh runner will not find integration test files unless you pass --runGlob **/*.integrationTest.js.

How do I run only specific extension host test suites in VS Code?▼

Use the --suite option with a suite name such as git, typescript, or api-folder, for example ./scripts/test-integration.sh --suite git. It supports comma-separated values and shell glob patterns on macOS/Linux, and skips node.js integration tests.

Can I filter VS Code integration tests by test name?▼

Yes, use --grep with a pattern matching describe or test titles, such as ./scripts/test-integration.sh --grep "TextSearchProvider". Used alone, the grep applies to both node.js integration tests and all extension host suites.

Why do VS Code integration tests fail to find my test file?▼

Tests run against compiled JavaScript output, so the VS Code - Build watch task must be running or compilation must have completed first. Also verify the file ends in .integrationTest.ts and the path passed to --run starts with src/.