Skip to content

[ Core ] UserService 테스트 커버리지가 0.7% 다 #93

Description

@RosieOh

💚 어떤 기능인가요?

#80 으로 전체 라인 커버리지는 16% → 34.9% 가 됐지만,
UserService 는 283줄 중 2줄(0.7%) 이다.

이 클래스에는 인증·계정 상태·역할이 모여 있다. 실제로 #82 (가입 시 role 신뢰),
#83 (역할 변경 무방비) 두 건 모두 이 클래스에서 나왔고,
테스트가 없어서 오래 남아 있었다.

build.gradle 의 CLASS 단위 60% 규칙에 아래 클래스들이 등록돼 있는데
UserService 는 커버리지가 너무 낮아 넣지 못했다.

JwtService, ClientIpResolver, PageRequestUtil,
CurrentUserFacade, JwtAuthenticationFilter, RateLimitInterceptor, EmailVerificationService

✅ To Dos

  • UserService 의 인증·계정 상태·역할 관련 메서드부터 단위 테스트 작성
  • 커버리지가 60% 를 넘으면 build.gradle 의 CLASS 규칙에 UserService 추가
  • 전체 ratchet 을 현재 수치에 맞춰 상향

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions