English
☰ 분류

테스트 우선 버그수정 프롬프트

버그 설명을 넣으면 관련 소스와 테스트를 읽고, 실패 테스트 작성부터 최소 수정, 전체 테스트 재실행, 관련 경로 검색과 변경 요약까지 수행하게 합니다.

분류개발 › 코딩
태그초안작성분석개발자코드체크리스트
프롬프트 (영어 본문 · 답은 한국어로 옵니다)
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.

어떤 프롬프트인가

버그 수정을 테스트 우선 절차로 진행하게 하는 개발 프롬프트다. 질문하지 말고 합리적 가정을 문서화하라고 지시하며, 모든 테스트가 통과할 때까지 반복하게 한다.

같은 분류의 프롬프트

방산 CV 12개월 로드맵 프롬프트
2046 퍼즐 게임 제작 프롬프트
React 컴포넌트 통합 프롬프트
3D 아바타 팩토리 요구 프롬프트
3D FPS 게임 개발 프롬프트