Test-First Bug Fix Workflow
来自 Wikiprompt,自由的提示词百科全书
Test-First Bug Fix Workflow A structured prompt for debugging with a test-first methodology, guiding the AI to reproduce, fix, and verify bugs while documenting changes.
提示词内容收藏
此提示词为英文,适用于所有 AI 模型。
I have a bug: ${bug}. Take a test-first approach: 1) Read the relevant source files and existing tests. 2) Write a failing test that reproduces the exact bug. 3) Run the test suite to confirm it fails. 4) Implement the minimal fix. 5) Re-run the full test suite. 6) If any test fails, analyze the fai...
登录以查看完整提示词
登录以继续用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论