Skills Plugins MCP Prompt Model 博客 我的中心

unit-tests

Use when running unit tests in the VS Code repo. Covers the runTests tool, scripts/test.sh (macOS/Linux) and scripts/test.bat (Windows), and their supported arguments for filtering, globbing, and debugging tests.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=microsoft-vscode-github-skills-unit-tests-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name unit-tests description Use when running unit tests in the VS Code repo. Covers the runTests tool, scripts/test.sh (macOS/Linux) and scripts/test.bat (Windows), and their supported arguments for filtering, globbing, and debugging tests. Running Unit Tests Preferred: Use the runTests tool If the runTests tool is available, prefer it over running shell commands. It provides structured output with detailed pass/fail information and supports filtering by file and test name. Pass absolute paths to test files via the files parameter. Pass test names via the testNames parameter to filter which tests run. Set mode="coverage" to collect coverage. Example (conceptual): run tests in src/vs/editor/test/common/model.test.ts with test name filter "should split lines" . Fallback: Shell scripts When the runTests tool is not available (e.g. in CLI environments), use the platform-appropriate script from the repo root: macOS / Linux: ./scripts/test.sh [options] Windows: .\scripts\test.bat [options] These scripts download Electron if needed and launch the Mocha test runner. Commonly used options Bare file paths - Run tests from specific files Pass source file paths directly as positional arguments. The test runner automatically treats bare .ts / .js positional arguments as --run values. ./scripts/test.sh src/vs/editor/test/common/model.test.ts .\scripts\test.bat src\vs\editor\test\common\model.test.ts Multiple files: ./scripts/test.sh src/vs/editor/test/common/model.test.ts src/vs/editor/test/common/range.test.ts --run <file> - Run tests from a specific file (explicit form) Accepts a source file path (starting with src/ ). The runner strips the src/ prefix and the .ts / .js extension automatically to resolve the compiled module. ./scripts/test.sh --run src/vs/editor/test/common/model.test.ts Multiple files can be specified by repeating --run : ./scripts/test.sh --run src/vs/editor/test/common/model.test.ts --run src/vs/editor/test/common/range.test.ts --grep <pattern> (aliases: -g , -f ) - Filter tests by name Runs only tests whose full title matches the pattern (passed to Mocha's --grep ). ./scripts/test.sh --grep "should split lines" Combine with --run to filter tests within a specific file: ./scripts/test.sh --run src/vs/editor/test/common/model.test.ts --grep "should split lines" --runGlob <pattern> (aliases: --glob , --runGrep ) - Run tests matching a glob Runs all test files matching a glob pattern against the compiled output directory. Useful for running all tests under a feature area. ./scripts/test.sh --runGlob "**/editor/test/**/*.test.js" Note: the glob runs against compiled .js files in the output directory, not source .ts files. --coverage - Generate a coverage report ./scripts/test.sh --run src/vs/editor/test/common/model.test.ts --coverage --timeout <ms> - Set test timeout Override the default Mocha timeout for long-running tests. ./scripts/test.sh --run src/vs/editor/test/common/model.test.ts -- timeout 10000 Integration tests Integration tests (files ending in .integrationTest.ts or located in extensions/ ) are not run by scripts/test.sh . Use scripts/test-integration.sh (or scripts/test-integration.bat ) instead. See the integration-tests skill for details. Compilation requirement Tests run against compiled JavaScript output. Ensure the VS Code - Build watch task is running or that compilation has completed before running tests. Test failures caused by stale output are a common pitfall.
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。