healtests

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Heal Tests Loop

测试修复循环

You are in a test-healing loop. Goal: make all tests pass.
你处于测试修复循环中。目标:让所有测试通过。

Step 1: Run Tests

步骤1:运行测试

bash
just testq
bash
just testq

Step 2: Evaluate Results

步骤2:评估结果

If tests pass: Report success. The healing loop is complete.
If tests fail: Continue to Step 3.
如果测试通过:报告成功。修复循环已完成。
如果测试失败:继续执行步骤3。

Step 3: Plan the Fix

步骤3:规划修复方案

  1. Analyze the test failure output
  2. Enter plan mode using
    EnterPlanMode
    tool
  3. Write your fix plan to the plan file
CRITICAL: Your plan file MUST end with this exact section:
markdown
undefined
  1. 分析测试失败输出
  2. 使用
    EnterPlanMode
    工具进入规划模式
  3. 将你的修复方案写入规划文件
关键注意事项:你的规划文件必须以以下确切内容结尾:
markdown
undefined

Verification (Healing Loop)

Verification (Healing Loop)

This fix is part of a
/healtests
healing loop. After implementing:
  1. Run
    just testq
  2. If tests pass, the healing loop is complete
  3. If tests fail, use
    EnterPlanMode
    to plan the next fix
The loop continues until all tests pass.

This ensures the loop context survives context clearing.
This fix is part of a
/healtests
healing loop. After implementing:
  1. Run
    just testq
  2. If tests pass, the healing loop is complete
  3. If tests fail, use
    EnterPlanMode
    to plan the next fix
The loop continues until all tests pass.

这能确保循环上下文在上下文被清空后依然保留。