Skip to content
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

통합 테스트 어노테이션 한곳에서 관리 #83

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

jacobhboy
Copy link
Member

@jacobhboy jacobhboy commented Feb 23, 2024

🎫 관련 이슈

close #81


🔨 작업 내용

  1. ServiceTest라는 추상클래스를 만들고 통합 테스트를 작성할 때에는 이 클래스를 상속 받고 개발하는 것으로 하였습니다.
  2. 먼저 통합테스트이기 때문에 데이터를 DB에 넣고 조회하는 작업들이 일어나서 Transactional 어노테이션이 필요하다고 느꼈습니다.
  3. 순수 자바가 아닌 스프링부트 수준에서 테스트를 진행하니 SpringbootTest 어노테이션도 필수라고 느꼈습니다.
  4. 테스트의 이름을 한글로 작성하는 경우가 많아서 _와 뒤 함수표시를 제거하기 위해서 @DisplayNameGeneration(DisplayNameGenerator.ReplaceUnderscores.class) 를 추가하였습니다.

🏁 확인 사항

  • 테스트를 완료했나요?
  • API 문서를 작성했나요?
  • 코드 컨벤션을 준수했나요?
  • 불필요한 로그, 주석, import 등을 삭제했나요?

🙋🏻 덧붙일 말

@jacobhboy jacobhboy linked an issue Feb 23, 2024 that may be closed by this pull request
1 task
@jacobhboy jacobhboy merged commit e912261 into master Feb 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

통합 테스트 어노테이션 통합 관리 통합 테스트 코드 작성
1 participant