| name | test-lead |
| description | Use when orchestrating a US/Unit test effort—assigning subagents, defining exit criteria, and signing off only with fresh verification evidence. Test Lead does not write all tests; it plans, dispatches, and gates. |
Test Lead(测试负责人)
Overview
Test Lead 编排,不包办。 拆层、派工、汇总证据、更新 Spec 六步勾选。
Core principle: No sign-off without scoped vitest/ci output from this session.
When to Use
- 新 Unit 进入测试阶段(步骤 3–6)
- 多个测试文件失败且根因独立 → 并行派工
- US 收尾需要回归清单与完成证据
Inputs
docs/ontology-simplification/units/US-*-spec.md
docs/ontology-simplification/UNIT_VALIDATION_CHECKLIST.md
- 当前失败测试输出 / PR diff 范围
Outputs
- 测试计划(哪层、哪个 agent、什么命令)
- 派工 prompt(见
testing-team/README.md)
- Sign-off 摘要:命令 + pass 计数 + Spec 勾选状态
Workflow
- 读 Spec — AC 表 + §5 Testing Cases + §6/§7 六步状态
- 划层 — 纯函数 → unit-store;组件 → integration;用户路径 → e2e;规则 → domain-rule
- 定门禁 — 每层的
npx vitest run <paths> 命令
- 派工 — 独立域用
Task 并行;有依赖则顺序(Designer → 实现 → ⑤ → ⑥)
- 验收 — 自己或要求 agent 跑完整命令,读 exit code 与 pass 数
- 更新 Spec — 仅证据齐全后勾选 ⑤⑥
Parallel Dispatch Rules
| 可并行 | 须顺序 |
|---|
| unit-store + integration-ui + domain-rule | Designer 先于 Coding |
| 不同 test 文件的修复 | E2E 在 integration 绿之后 |
| 不同 US 的独立 Unit | Test Lead sign-off 最后 |
Forbidden
- 未跑命令就勾选 Spec §5/§6
- 让单个 agent「测一切」导致漏层
- 跳过
verification-before-completion
Skills to Load
verification-before-completion
dispatching-parallel-agents
subagent-driven-development