Test-First Bugfix-Workflow

💬 Text🌐 CC0

Hilft dir, technische Aufgaben in klare Schritte zu zerlegen, sauber umzusetzen und typische Fehler früh zu vermeiden, damit du schneller zu belastbar

Prompt

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 failure, adjust the code, and re-run—repeat until ALL tests pass. 7) Then grep the codebase for related code paths that might have the same issue and add tests for those too. 8) Summarize every change made and why. Do not ask me questions—make reasonable assumptions and document them.

Öffnen in

Ähnliche Community Prompts

Wetter-Erklärer

🌐 CC0

Build a comprehensive weather dashboard using HTML5, CSS3, JavaScript and the OpenWeatherMap API.

CodingSchreibenForschung

File System Indexer CLI

🌐 CC0

Build a high-performance file system indexer and search tool in Go.

CodingSchreibenForschung

KI Search Mastery Bootcamp

🌐 CC0

Unterstützt dich bei KI Search Mastery Bootcamp mit strukturierten Schritten, klaren Anforderungen und umsetzbaren Ergebnissen für schnellere, saub...

CodingSchreibenForschung

ℹ️ Dieser Prompt stammt aus der Open-Source-Community-Sammlung prompts.chat und steht unter der CC0-Lizenz (Public Domain). Kostenlos für jeden Einsatz.

Quelle: prompts.chatBeitrag von: ilkerulusoyLizenz: CC0