[Step2] 윤제민(yukon.yoon) 인수 테스트 체계 고도화 제출합니다#70
Open
Yoon-Jemin wants to merge 17 commits intonext-step:yoon-jeminfrom
Open
[Step2] 윤제민(yukon.yoon) 인수 테스트 체계 고도화 제출합니다#70Yoon-Jemin wants to merge 17 commits intonext-step:yoon-jeminfrom
Yoon-Jemin wants to merge 17 commits intonext-step:yoon-jeminfrom
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.
질문1:
현재 테스트 환경 격리를 위해 각 테스트 실행 전(@before)에 deleteAllInBatch()를 사용해 데이터를 정리하고 있습니다. 이 방식은 속도가 빠르고 구현이 단순하다는 장점이 있지만, 새로운 테이블이 추가될 때마다 정리 코드를 함께 수정해야 하며 이를 놓칠 경우 데이터 누수가 발생할 수 있다는 우려가 있습니다. 실무에서는 테스트 환경 격리를 어떤 방식으로 접근하는지 궁금합니다.
질문2:
빌드 과정에서 Docker 이미지 빌드와 컨테이너 생성 작업을 dependsOn으로 연결해 사전 작업이 수행되도록 구성했습니다. Gradle에서 작업을 이렇게 엮는 방식이 아직 익숙하지 않은데, 실무에서도 이러한 접근을 일반적으로 사용하는지 궁금합니다.
질문3:
Option과 Member는 현재 API로 생성할 수 없어 Repository에 직접 접근해 초기 데이터를 생성하고 있습니다. 다만 인수 테스트의 특성상 이러한 방식이 실제 사용자 흐름을 반영한 자연스러운 접근은 아니라는 고민이 있습니다. 테스트를 위해 필요한 데이터를 생성해야 하지만 해당 기능을 제공하는 API가 없는 경우, 실무에서는 어떤 방식으로 대응하는지 궁금합니다.