charted-green
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseContext
上下文
- designDocPath: $ARGUMENTS[0]
- testFilePath: $ARGUMENTS[1]
- designDocPath: $ARGUMENTS[0]
- testFilePath: $ARGUMENTS[1]
Goal
目标
Using the design doc at as the single source of truth, progressively activate the tests in .
${designDocPath}${testFilePath}以 中的设计文档作为唯一事实来源,逐步激活 中的测试。
${designDocPath}${testFilePath}Steps
步骤
- Categorize each test in as:
${testFilePath}
- Implemented tests: tests that contain actual test code (not just empty or comments)
- Empty tests: tests that are empty or only contain comments - TOTALLY IGNORE THESE
- For each implemented test, convert into
it.todo(...), but do it strictly one test at a time, then update the implementation just enough for that specific test to turn green — NOTHING MORE.it(...)
DO NOT IMPLEMENT ANYTHING THAT IS NOT DIRECTLY RELATED TO THE CURRENT TEST.
-
After the current test passes, update progress in(see Design Doc Progress below).
${designDocPath} -
STOP when these tests are green.
-
Remove the wiprecation (@deprecated 🚧 work in progress) jsdoc from the implementated item if it is done and safe to use.
- 将 中的每个测试分类为:
${testFilePath}
- 已实现测试:包含实际测试代码的测试(而不仅仅是空测试或注释)
- 空测试:为空或仅包含注释的测试——完全忽略这些测试
- 对于每个已实现测试,将 转换为
it.todo(...),但必须严格一次只处理一个测试,然后只对实现代码进行最低限度的更新,使该特定测试变为通过——绝不多做任何事情。it(...)
不要实现任何与当前测试无直接关联的内容。
-
当前测试通过后,更新中的进度(请参阅下面的设计文档进度)。
${designDocPath} -
当这些测试全部变绿时停止。
-
如果对应的已实现项已完成且可以安全使用,请从该项目中移除 wipprecation(@deprecated 🚧 work in progress)jsdoc。
Design Doc Progress
设计文档进度
After each test turns green, update to reflect completed work.
${designDocPath}Flip to and to . Do not edit any other text, headings, diagrams, or structure in the design doc.
🚧✅- [ ]- [x]Check off items in these sections only:
- PR's Testing Strategy — the heading that matches the test you just activated.
### 🚧 {test_title} - PR's Tasks — every item whose work is now done and verified by the passing test.
- [ ] ...taslk description... - PR Plan — the entry when all PR's Tasks and Testing Strategy items are checked off.
## 🚧 {pr_title}
If you are unsure whether an Implementation Details item is done, leave it unchecked.
每个测试变绿后,更新 ,以反映已完成的工作。
${designDocPath}将 替换为 ,将 替换为 。不要编辑设计文档中的任何其他文本、标题、图表或结构。
🚧✅- [ ]- [x]仅勾选以下章节中的项目:
- PR 的测试策略——与刚激活的测试相匹配的 标题。
### 🚧 {test_title} - PR 的任务——所有工作现已完成并经通过的测试验证的 项目。
- [ ] ...taslk description... - PR 计划——当 PR 的所有任务和测试策略项目均已勾选时,勾选 条目。
## 🚧 {pr_title}
如果不确定某个“实现详情”项是否已完成,请保持其未勾选状态。
Rules
规则
DO NOT IMPLEMENT EMPTY TESTS.
NEVER implement tests.
ONLY EDIT TESTS as a last resort after you have tried everything else.
Design doc edits are only checkbox-based or to replacements. Never reword, reorder, add, or remove content in .
🚧✅${designDocPath}Run tests after each change. Only once the current test passes should you advance to the next one.
Use the Wallaby Skill if available to run tests, otherwise run tests using the recommended approach for the project.
不要实现空测试。
绝不实现测试。
只有在尝试过所有其他方法后,才能将编辑测试作为最后手段。
对设计文档的编辑仅限于勾选复选框或将 替换为 。 绝不在 中改写、重新排列、添加或删除内容。
🚧✅${designDocPath}每次更改后都运行测试。只有当前测试通过后,才能继续处理下一个测试。
如果可以使用 Wallaby Skill,请使用它运行测试;否则,使用项目推荐的方法运行测试。