HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
[New] 아만드팀
[New] 아만드팀
/
⚖️
최종 프로젝트 - 준비
/
테스트 전략

테스트 전략

  • 테스트 전략 (최대한 하도록)
    • E2E(mockMvc) + 유닛(도메인, 서비스(모킹) , 레포(커스텀 쿼리))
    • E2E + 통합 + 유닛
    • E2E + 통합 + 유닛 + DOCS(@WebMvcTest)
    • mockMvc RestAssured testTemplate
    • 테스트 템플릿
      • given when then 주석붙이기
        • 필수적으로 붙이는 게 좋을 듯합니다
      • Fixture 관리
    • 서비스 단에서 Mockito로 구현할건지?
      • @SpringBootTest
      • @DataJpaTest 로 진행?
      • MemoryRepostiory ← 멘토님한테 여쭤봐야할듯 ← 실제 repo 인터페이스에서 JpaRepository 받지 못함
      • 프로파일 지정해서 test 때만