Skills Plugins MCP Prompt Model 博客 我的中心

unit-testing

为 BK-CI 代码编写单元测试时使用,例如 JUnit5、MockK、测试组织、依赖 Mock、异常校验和 TDD 场景。当用户要补测试或用测试驱动实现时优先使用。

DeepseekModel Curated skill Quality Excellent · 90 v1.0.0

Get

https://deepseekmodel.com/api/download.php?id=tencentblueking-bk-ci-ai-skills-unit-testing-skill-md&format=skill
Download .skill Standard format with system_prompt and model_config, ready for any agent framework
The actual content of the system_prompt field in the .skill file.
name unit-testing description 为 BK-CI 代码编写单元测试时使用,例如 JUnit5、MockK、测试组织、依赖 Mock、异常校验和 TDD 场景。当用户要补测试或用测试驱动实现时优先使用。 单元测试 适用场景 编写 Service / DAO / 工具类单元测试 Mock 外部依赖和边界条件 验证正常路径、异常路径和回归场景 采用 TDD 或补测试防回归 不适用场景 集成测试、端到端测试 只是实现业务逻辑,不准备补测试 只是排查运行环境问题 快速指导 这个 skill 关注的是 BK-CI 项目里的单元测试写法,不是测试理论总览。 测试先保证意图清晰,再考虑覆盖率;重点是关键分支和回归风险。 常见模式仍然是 AAA、Mock 外部依赖、显式断言结果和交互。 写测试前先确认你测的是业务规则,不是把实现细节机械复述一遍。 如果测试涉及后端接口或服务结构,再联动看 backend-microservice-development 。 高信号规则 正常路径和失败路径都要有代表性覆盖 Mock 应该服务于隔离边界,而不是掩盖设计问题 测试命名要能直接表达行为和预期 关键陷阱 只测 happy path Mock 过度,导致测试几乎失去行为价值 断言太弱,只证明代码跑过,没有证明结果正确 延伸阅读 如果你在改后端服务:再看 backend-microservice-development
Keywords that activate this skill. Click one to copy it.

This skill does not provide trigger words.

The downloaded .skill package contains the following fields.
Field Description
formatFormat tag (skill/v1)
skill_idUnique skill ID
nameSkill name
versionVersion
descriptionDescription
categoryCategories (array)
trigger_wordsTrigger words
tagsTags
sourceSource
source_urlSource URL (this page)
exported_atExported at (set per download)
system_promptSystem prompt body
model_configModel config: provider / model / temperature / max_tokens / top_p
examplesExamples
install_guideImport guide for Coze / Dify / Claude / custom frameworks
The same skill can be exported in different platform formats.
.skill Standard format with system_prompt and model_config, ready for any agent framework Download
.skillpro Enhanced format with scripts, tools, dependencies and hooks Download
.json Plain JSON export with system_prompt and model parameters only Download
Coze Markdown with frontmatter, for Coze platform import Download
Dify Dify DSL, import directly after creating an app Download

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

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

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

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