Claude、Copilot、Cursor 與人類的 100 個修復提交中,7 個未受測試保護
I checked 100 "fixed" commits from Claude, Copilot, Cursor and humans. 7 had no test guarding the fix.
作者使用 Bite 檢查 Claude、Copilot、Cursor 及人類提交的 100 個修復,發現 7 個修復被撤回後,所有測試仍會通過。這不代表修復本身有問題,而是相關錯誤再次出現時,測試不會發出警示;AI 與人類修復結果大致相若,但樣本不足以比較 Claude、Copilot 和 Cursor。
I use Claude Code a lot to work on all sorts of projects. I couldn't ask Claude to check its own work, because it can be biased. So I built a program that checks its work: Bite. More specifically, it checks whether your tests would notice if a fix or change was taken out. It checks what tests really guard.
What I did
I ran Bite (free mode, no API key) on 220 public repos with recent fix commits from Claude, Copilot and Cursor, plus human fix commits in the same repos to compare.
100 fix commits could actually be checked: 27 Claude, 27 Copilot, 23 Cursor, 23 human. Every flag was checked by hand.
What it found
7 of the 100 shipped a fix that no test guards. Take the fix out, and every test still passes.
That doesn't mean those fixes are broken. It means if the bug comes back, nothing warns you. One example: a fix changed dashboard presets from d30/d90 to last30/last90, because the old names didn't exist. No test checks the names, so a rename brings the bug right back.
I was surprised that AI and humans were about the same. There were too few to say whether Claude, Copilot or Cursor is better, so I won't.
Bite was wrong too
Bite was wrong 9 times out of its 30 flags. Of course, the project is still young. Most of those were tests that exist but that the project's test command never runs. I fixed that, and a rerun cut it to 2 of 30. Bite now tells you when your test command skips a test you added.
Try it
pipx install bite-check
cd your-repo
bite --free
Free, no key. I hope Bite helps you either way: by telling you some fixes don't have tests guarding them, or by telling you all your fixes do. Run it, star it, try to break it, whatever. As long as it's being used.
來源:DEV Community · dev.to