SuperAPI AI 工具集

workflow-lite-test-review

测试与质量

查看项目

更新于 10-15 17:32

技能介绍

用途:作为 workflow-lite-execute 的后续测试审查环节,或独立调用,对实现进行计划符合性验证(convergence 收敛验证)、运行测试并自动修复失败。

主要能力:TR-Phase 1 检测测试框架(package.json scripts.test / test:unit、pyproject.toml→pytest、Cargo.toml→cargo test、go.mod→go test)并收集 git diff 变更;TR-Phase 2 按任务收敛标准逐条核验,可用 agent(默认)、gemini、codex 或 skip;TR-Phase 3 生成 test-checklist.json 并运行测试(5 分钟超时);TR-Phase 4 自动修复失败(最多 3 轮,委托 test-fix-agent);TR-Phase 5 生成 test-review.md 并链到 session:sync。

使用方式:独立调用需会话路径或 --last;--in-memory 表示从 workflow-lite-execute 链式进入;--skip-fix 仅审查不修复。项目约定可运行 ccw spec load --category test。

适用场景:已由 workflow-lite-plan/execute 产出 plan.json 与任务文件的会话,需要验证测试覆盖、执行测试并修复失败。

限制:测试超时按 FAIL 记录部分输出;无测试框架时跳过执行但仍生成报告;修复 3 轮仍失败需人工排查;依赖会话目录结构 .workflow/.lite-plan/{session-id}/。缺失的价格、平台与额外步骤信息暂未提供。