vscode-test-setup

Automate VS Code extension test environment setup with Mocha or Jest.

21|11|Updated Jul 4, 2025
One-click install
npx skills add https://github.com/s-hiraoku/vscode-sidebar-terminal --skill vscode-test-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vscode-test-setup
Source: https://github.com/s-hiraoku/vscode-sidebar-terminal/tree/main/.claude/skills/vscode-test-setup
Command: npx skills add https://github.com/s-hiraoku/vscode-sidebar-terminal --skill vscode-test-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill streamlines the often complex and time-consuming process of setting up a robust testing environment for VS Code extensions. It automates the configuration of test frameworks, coverage tools, and CI/CD pipelines, allowing developers to focus on writing code rather than infrastructure.

Core Features & Use Cases

  • Test Framework Configuration: Set up Mocha or Jest with TypeScript support for unit and integration testing.
  • Code Coverage Integration: Configure c8 or nyc to track and enforce code coverage thresholds.
  • CI/CD Pipeline Setup: Generate GitHub Actions workflows for automated testing across different OS and VS Code versions.
  • Use Case: Initialize a new VS Code extension project with a complete Mocha-based unit and integration testing setup, including code coverage and a GitHub Actions workflow for continuous testing.

Quick Start

Use the vscode-test-setup skill to generate a new test environment for a VS Code extension project located at './my-extension' using Mocha and c8.

Frequently Asked Questions about vscode-test-setup

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

FAQPage Schema
How do I set up testing for a VS Code extension project?

VS Code extension testing requires configuring a test framework like Mocha or Jest with TypeScript support, installing dependencies, and setting up test scripts in package.json. This skill automates that entire setup process, generating configuration files and directory structures for unit, integration, and end-to-end tests.

Can I use Mocha and Jest together for VS Code extension tests?

You typically choose one framework per project. This skill supports either Mocha or Jest configuration for VS Code extensions, letting you select based on your team's preference. Both integrate with TypeScript and code coverage tools like c8 or nyc.

How do I add code coverage tracking to my VS Code extension tests?

Code coverage for VS Code extensions is configured using tools like c8 or nyc, which track which lines your tests execute. This skill integrates coverage tooling into your test setup and enforces thresholds to maintain code quality standards.

What's the best way to automate testing for VS Code extensions across OS versions?

GitHub Actions workflows enable continuous testing across operating systems and VS Code versions. This skill generates ready-to-use CI/CD pipeline templates that run your tests automatically on every commit.

Do I need separate configurations for unit and integration tests in VS Code extensions?

Yes. This skill creates a scalable directory structure and separate test configuration files (like .vscode-test.js and tsconfig.test.json) that let you manage unit, integration, and end-to-end tests with their own frameworks and settings.

Why does my VS Code extension test environment setup take so long?

Manual test setup requires configuring multiple tools, writing configuration files, creating directory structures, and integrating CI/CD—each step prone to errors. This skill automates all of that, cutting setup time significantly and reducing configuration mistakes.