microsoft/vscode-python-environments/run-smoke-tests
Claude Code and agent skill by microsoft/vscode-python-environments
- vendor
Checking that the SKILL.md file is still in the repository.
Run smoke tests to verify extension functionality in a real VS Code environment. Use this when checking if basic features work after changes.
Install
npx vskill@latest install microsoft/vscode-python-environments/run-smoke-testsSKILL.md
The same SKILL.md was published earlier as microsoft/vscode-python-environments/run-smoke-tests.
Run smoke tests to verify the extension loads and basic functionality works in a real VS Code environment.
When to Use This Skill
- After making changes to extension activation code
- After modifying commands or API exports
- Before submitting a PR to verify nothing is broken
- When the user asks to "run smoke tests" or "verify the extension works"
Quick Reference
| Action | Command | |
|---|---|---|
| Run all smoke tests | npm run compile && npm run compile-tests && npm run smoke-test | |
| Run specific test | npm run smoke-test -- --grep "Extension activates" | |
| Debug in VS Code | Debug panel → "Smoke Tests" → F5 |
How Smoke Tests Work
Unlike unit tests (which mock VS Code), smoke tests run inside a real VS Code instance:
npm run smoke-testuses@vscode/test-cli- The CLI downloads a standalone VS Code binary (cached in
.vscode-test/) - It launches that VS Code with your extension installed
- Mocha runs test files inside that VS Code process
- Results are reported back to your terminal
This is why smoke tests are slower (~10-60s) but catch real integration issues.
Workflow
Step 1: Compile and Run
Step 2: Interpret Results
Pass: 4 passing (2s) → Extension works, proceed.
Fail: See error message and check Debugging section.
Running Individual Tests
To run a specific test instead of the whole suite:
Debugging Failures
| Error | Cause | Fix | |
|---|---|---|---|
Extension not installed | Build failed or ID mismatch | Run npm run compile, check extension ID | |
Extension did not become active | Error in activate() | Debug with F5, check Debug Console | |
Command not registered | Missing from package.json | Add to contributes.commands | |
Timeout exceeded | Slow startup or infinite loop | Increase timeout or check for blocking code |
For detailed debugging, use VS Code: Debug panel → "Smoke Tests" → F5
Adding New Smoke Tests
Create a new file in src/test/smoke/ with the naming convention *.smoke.test.ts:
Key patterns:
- Use
waitForCondition()instead ofsleep()for async assertions - Set generous timeouts (
this.timeout(60_000)) - Include clear error messages in assertions
Test Files
| File | Purpose | |
|---|---|---|
src/test/smoke/activation.smoke.test.ts | Extension activation tests | |
src/test/smoke/index.ts | Test runner entry point | |
src/test/testUtils.ts | Utilities (waitForCondition, etc.) |
Prerequisites
- CI needs webpack build: The extension must be built with
npm run compile(webpack) before tests run. The test runner usesdist/extension.jswhich is only created by webpack, not bynpm run compile-tests(tsc) - Extension builds: Run
npm run compilebefore tests
Notes
- First run downloads VS Code (~100MB, cached in
.vscode-test/) - Tests auto-retry once on failure
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 16 Jul 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/run-smoke-tests/SKILL.md
Popularity
- Repository stars
- 132
- Repository forks
- 52
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/vscode-python-environments/run-smoke-tests)