跳到正文
cccskills
免费在 GitHub 公开

fix-test

Debug and fix failing tests systematically

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Fix a failing test

Repository paths are relative to the repository root. Start with reported output and the failing file; use ./bashunit --filter "test_name" <test-file> to reproduce narrowly. Discover with the full suite only when no narrower failure is known.

  1. Trace the failure to its source and classify it: incorrect expectation/setup, implementation defect, environment/fixture issue, parallel race, or flaky external dependency. Check fixtures under tests/fixtures/ and mocks with assert_have_been_called <name> where relevant. Temporary diagnostics go to stderr and must be removed.
  2. Preserve a failing regression for the actual defect. Correct an expectation only when the intended behavior proves it wrong; otherwise make the smallest implementation fix with TDD. Repair fixtures or setup for environment defects, use the existing $temp_dir isolation and wait for asynchronous work for races, and mock external dependencies for flaky tests.
  3. Run the focused test until it passes for the right reason. Reproduce relevant parallel behavior when investigating isolation. If the failure may predate the change, verify the same focused test on unchanged main in an isolated checkout.
  4. Add a relevant edge case if it protects the root cause. After the complete change set, the coordinator runs the canonical quality gate once; delegates run only assigned targeted checks.

Report the cause, fix, focused evidence, and any specific remaining environment limit.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add new assertion function with comprehensive tests following TDD

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月20日 更新

Analyze test coverage and identify untested code paths

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月20日 更新

commit

免费

Stage and commit changes using conventional commits format

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月20日 更新

Measure process costs and fork budgets when changing startup, per-file, per-test, parallel workers, reporting, or coverage paths; use for fork census and performance comparisons.

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月20日 更新

gh-issue

免费

Fetch GitHub issue, create branch, plan and implement with TDD, then open PR

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月20日 更新

gh-issues

免费

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月20日 更新

查看 TypedDevs 的全部技能

报告此技能的问题