-
Notifications
You must be signed in to change notification settings - Fork 53
[1팀 김민석] Chapter 1-2. AI와 테스트를 활용한 안정적인 기능 개발 #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kju1018
wants to merge
34
commits into
hanghae-plus:main
Choose a base branch
from
kju1018:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
과제 체크포인트
필수 스펙
기본 과제
공통 제출
기본 과제(Easy)
기본 과제(Hard)
심화 과제
과제 셀프회고
처음 발제 시간에 AI 관련 내용을 설명해주시고 과제까지 안내해주셨지만, 솔직히 그때는 무슨 말인지 잘 이해하지 못했습니다.
AI를 제대로 사용해본 적도 없었고, 관심도 많지 않았기 때문입니다.
그래서 무작정 과제를 시작하기보다는, 먼저 AI의 기본 개념과 용어, 그리고 여러 도구들에 대해 알아보기로 했습니다.
그중 제가 그나마 가장 익숙하게 사용해본 ChatGPT에게 ‘테스트를 잘 작성하기 위한 규칙은 무엇인지’, ‘Cursor rules나 Copilot instructions는 정확히 어떤 역할을 하는지’, ‘테스트 규칙 문서와는 어떻게 다른지’ 등을 하나씩 물어보며 공부를 시작했습니다.
그렇게 하나하나 개념을 정리하고 이해해 나가면서, AI를 어떻게 활용하면 좋을지 감이 잡히기 시작했고, 여러 AI 도구들의 차이점도 어느 정도 구체적으로 알 수 있게 되었습니다.
우선 에이전트들을 개선하기 위해서
기술적 성장
AI를 활용한 TDD 개발을 통해 “구현”보다 “기대되는 행동”을 먼저 설계하는 방법을 배웠습니다.
또한 에이전트를 직접 만들어보며, “AI를 이렇게도 활용할 수 있구나”라는 새로운 가능성을 경험했습니다.
새롭게 학습한 개념으로는, ‘테스트를 잘 작성하기 위한 규칙 문서’가 정확히 어떤 역할을 하는지,
그리고 에이전트가 무엇이며 그 역할·규칙·목표를 문서로 정의한 명세서(spec) 가 어떤 의미를 가지는지 이해할 수 있게 되었습니다.
코드 품질
학습 효과 분석
AI를 활용해 테스트 시나리오를 설계하면서, 기능 요구사항을 자연어로 명확히 표현하는 연습이 되었습니다.
AI는 다양한 테스트 패턴(AAA, Given/When/Then, mock 구조 등)을 예시로 제시해주었기 때문에,
초기에 “테스트를 어떻게 짜야 하는가”를 체계적으로 배울 수 있었습니다.
또한 테스트를 통과시키기 위한 최소한의 코드를 작성하고, 이후 리팩토링을 진행하면서
안전하게 코드 구조를 개선하는 과정을 직접 경험할 수 있었습니다.
과제 피드백
리뷰 받고 싶은 내용
이처럼 이미 명세서가 주어지고 추가해야 할 기능이 정리되어 있다면, 굳이 기능 설계 에이전트가 필요하지 않을 것 같다고 판단해 테스트 설계 에이전트부터 만들었는데요.
혹시 과제처럼 명세서가 제공된 경우에도 기능 설계 에이전트부터 만드는 것이 더 적절했는지 궁금합니다.