Individual skill

dsh-ci-test-reliability

设计或审查测试覆盖、选择单元/集成/真实入口/端到端测试及 mock 边界时使用;也用于诊断偶发失败、异步、并行及持有资源的测试。适用于测试计划、回归覆盖缺口和不可靠的 CI 证据。

skills/dsh-ci-test-reliability/SKILL.md

Read pinned source

Source commit a8cee8831f288376b8cc5d7d0d28485a03911c1e

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
Yes
Observed behavior
Instructions only
Last checked
Nov 9, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
1,871
Repository last updated
Nov 1, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# 设计有效测试,修复不可靠的验证

阅读[项目上下文](references/project-context.md)和[验证证据](references/evidence.md)。新增覆盖或审查覆盖情况时选择测试设计;已经观察到间歇性失败时选择偶发失败诊断。任务需要时才组合两者。诊断或测试计划请求保持只读,除非用户要求实现。

## 设计或审查测试覆盖

1. 阅读[测试选择](references/test-strategy.md)。将变化的行为对应到真实调用方和失败风险,再检查已有覆盖与必需检查。
2. 对每个重要缺口,选择测试层级、真实入口、测试替身和独立断言。说明 mock 会绕过什么。手工组装的单元样例无法检出缺陷时,使用真实入口验证组件组装。
3. 复用已经能够发现风险的测试。只有用户要求实现覆盖时才添加测试;计划任务给出具体用例和期望结果。
4. 已实现的回归测试或防护检查,应有会失败的错误对照和会通过的合法样例。执行相关检查和项目必需检查,分清实际执行、建议执行与受阻的检查。

## 诊断偶发失败

阅读[测试可靠性](references/test-reliability.md)。
Back to top