Analyse von 100 Bugfixes: Nur wenige Fixes sind durch Tests abgesichert
Ein Entwickler hat 100 Commits von Claude, Copilot, Cursor und menschlichen Programmierern untersucht und festgestellt, dass sieben Fixes durch keinen Test gesichert sind. Dafür nutzte er das selbst gebaute Tool Bite, das prüft, ob Tests das Fehlen eines Fixes überhaupt bemerken würden.

Ich nutze Claude Code sehr häufig, um an allen möglichen Projekten zu arbeiten. Ich konnte Claude nicht bitten, seine eigene Arbeit zu überprüfen, da es voreingenommen sein kann. Also habe ich ein Programm gebaut, das seine Arbeit prüft: Bite. Genauer gesagt überprüft es, ob Ihre Tests bemerken würden, wenn ein Fix oder eine Änderung rückgängig gemacht würde. Es prüft, welche Tests tatsächlich schützen.
Ich habe Bite (kostenloser Modus, ohne API-Schlüssel) auf 220 öffentliche Repositories mit aktuellen Fix-Commits von Claude, Copilot und Cursor angewendet, zusätzlich zu menschlichen Fix-Commits in denselben Repositories zum Vergleich.
100 Fix-Commits konnten tatsächlich überprüft werden: 27 von Claude, 27 von Copilot, 23 von Cursor und 23 von Menschen. Jede Markierung wurde manuell überprüft.
7 der 100 enthielten einen Fix, den kein Test absichert. Entfernt man den Fix, bestehen weiterhin alle Tests.
Das bedeutet nicht, dass diese Fixes fehlerhaft sind. Es bedeutet, dass Sie nichts warnt, falls der Fehler zurückkehrt. Ein Beispiel: Ein Fix änderte Dashboard-Voreinstellungen von d30 / d90 zu last30 / last90, weil die alten Namen nicht existierten. Kein Test prüft die Namen, sodass eine Umbenennung den Fehler sofort zurückbringt.
Ich war überrascht, dass KI und Menschen etwa gleich abschnitten. Die Zahlen waren zu gering, um zu sagen, ob Claude, Copilot oder Cursor besser ist, daher werde ich das nicht tun.
Bite lag bei 9 seiner 30 Markierungen falsch. Natürlich ist das Projekt noch jung. In den meisten Fällen handelte es sich um Tests, die existieren, aber vom Test-Befehl des Projekts nie ausgeführt werden. Das habe ich behoben, und ein erneuter Durchlauf reduzierte es auf 2 von 30. Bite sagt Ihnen jetzt, wenn Ihr Test-Befehl einen von Ihnen hinzugefügten Test überspringt.
pipx install bite-check cd your-repo bite --free Vollbildmodus öffnen Vollbildmodus beenden Kostenlos, ohne Schlüssel. Ich hoffe, dass Bite Ihnen in jedem Fall hilft: indem es Ihnen sagt, dass einige Fixes keine Tests haben, die sie absichern, oder indem es Ihnen sagt, dass alle Ihre Fixes abgesichert sind. Führen Sie es aus, geben Sie ihm einen Stern, versuchen Sie, es zu brechen, ganz egal. Hauptsache, es wird genutzt.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
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.
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.
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 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.
pipx install bite-check cd your-repo bite --free Enter fullscreen mode Exit fullscreen mode 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.