VS Code TDD Expert
Guides the implementation of Test-Driven Development for VS Code extensions using the t-wada methodology to ensure robust command, WebView, and terminal logic.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Standardized configuration for @vscode/test-cli, Mocha, and c8 coverage
- Ready-to-use testing suites for WebViews, commands, and activation logic
- Implementation of t-wada's Red-Green-Refactor cycle for VS Code APIs
- Best practices for testing asynchronous operations and event emitters
- Domain-specific patterns for mocking VS Code Window, Terminal, and Context
Use cases
- Setting up a test-first workflow for new VS Code extension projects
- Implementing complex WebView components with verified message handling
- Establishing automated quality gates to enforce code coverage and linting
FAQ
What does the VS Code TDD Expert skill do?
This skill provides specialized guidance for implementing Test-Driven Development (TDD) specifically for VS Code extensions. it uses t-wada's Red-Green-Refactor methodology to help you write tests for commands, WebViews, and terminal logic before writing production code.
Can this skill handle complex VS Code components like WebViews?
Yes, it includes domain-specific patterns for mocking the VS Code Window and Terminal, as well as ready-to-use testing suites for WebViews that handle message passing and lifecycle events.
How does it improve my extension development workflow?
It eliminates the guesswork in mocking the VS Code API. By providing standardized configurations for @vscode/test-cli, Mocha, and Sinon, it ensures your extension is built on a foundation of passing tests, reducing bugs and regression risks.
When should I use this skill with Claude Code?
You should activate this skill when starting a new VS Code extension feature, setting up a testing infrastructure, or when you need to improve code coverage for complex components like WebView providers and asynchronous event emitters.
What testing stack does this skill support?
The skill is optimized for the modern VS Code testing stack, including @vscode/test-cli, Mocha for the test runner, Chai for assertions, Sinon for mocking, and c8 for code coverage reporting.
Related skills
Overnight Development
Automates overnight software development by enforcing a test-driven development (TDD) workflow with Git hooks.
Security Testing66512 ptsTesting Skills with Subagents
Applies a Test-Driven Development (TDD) cycle to create and bulletproof other Claude skills, ensuring they withstand pressure and resist rationalization.
Security Testing1112 ptsUnison Development
Writes, tests, and updates Unison code using a mandatory Test-Driven Development (TDD) workflow and specialized MCP tools.
Security Testing312 pts