-
Notifications
You must be signed in to change notification settings - Fork 1
[test] 투표 기능 단위 테스트 작성 #47
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
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
53c8f1c
feat: 사용자 github repo 보유 여부 확인 로직 수정(#31)
Minjae-An b6117f5
feat: 예외명 형식에 맞게 수정(#31)
Minjae-An 03e2ba3
feat: id 기반으로 객체 비교하도록 수정(#31)
Minjae-An add85d9
feat: 메서드명 및 로직 수정(#31)
Minjae-An f64ce2e
feat: 메서드명 변경에 따른 수정(#31)
Minjae-An 9876ff9
feat: 메서드명 변경에 따른 수정(#31)
Minjae-An 9aa8cc0
feat: 예외명 변경에 따른 수정(#31)
Minjae-An ef3f0b3
chore: ID 기반 github repo 조회 테스트 setup SQL 추가(#31)
Minjae-An a3c46b6
test: ID 기반 github repo 조회 테스트 추가(#31)
Minjae-An bd6335b
chore: jacoco 의존성 추가(#31)
Minjae-An 4e34b1e
chore: 테스트 커버리지 측정 과정 추가(#31)
Minjae-An 562f7e6
chore: 테스트 커버리지 생성에 불필요한 html 경로 삭제(#31)
Minjae-An 42325b0
chore: PR에 테스트 커버리지 내용 추가를 위한 권한 설정(#31)
Minjae-An 37760d8
chore: querydsl Qclass git 관리에서 제외(#31)
Minjae-An 006158d
chore: 테스트 fixture setup용 SQL 추가(#31)
Minjae-An 4d1f30b
feat: 파라미터타입 기본 타입으로 변경(#31)
Minjae-An 873c231
feat: 불필요한 코드 중복 제거(#31)
Minjae-An 94049ab
test: 사용자 ID, Repository ID 기반 조회 테스트 추가(#31)
Minjae-An 596c4f3
feat: 메서드명 명확하게 변경(#31)
Minjae-An 2b8ec40
feat: 메서드명 변경에 따른 수정(#31)
Minjae-An 4c00115
test: 투표 사용자 토큰 연관 로직 테스트 추가(#31)
Minjae-An a8942e3
Merge branch 'dev' into test/31
Minjae-An d32e260
feat: 부적절한 예외 ENUM명 수정(#31)
Minjae-An 13e2d63
feat: 메서드명 및 로직 수정(#31)
Minjae-An d3ba0a7
feat: 예외 ENUM명 변경에 따른 수정(#31)
Minjae-An 7dc3757
test: 데이터 세팅/클렌징을 메서드 단위로 실행토록 수정(#31)
Minjae-An b295876
test: 투표 오픈 단위 테스트 추가(#31)
Minjae-An e2031d8
test: 투표 대상 이메일 조회 단위 테스트 추가(#31)
Minjae-An 85b615f
test: 투표 폼 구성 데이터 제공 기능 단위 테스트 추가(#31)
Minjae-An 3dd9bf9
feat: 사용하지 않는 DTO 삭제(#31)
Minjae-An 966fa8d
test: 투표 요청 저장 기능 단위 테스트 추가(#31)
Minjae-An 766775d
test: 투표 결과 저장 기능 단위 테스트 추가(#31)
Minjae-An 66f782d
chore: cd 임시 비활성화(#31)
Minjae-An 958770f
test: 투표 결과 조회 기능 단위 테스트 추가(#31)
Minjae-An File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,6 @@ name: cd | |
| on: | ||
| push: | ||
| branches: | ||
| - dev | ||
| - main | ||
| paths-ignore: | ||
| - 'README.md' | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ on: | |
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
|
|
@@ -36,4 +37,12 @@ jobs: | |
| run: chmod +x gradlew | ||
|
|
||
| - name: gradlew test | ||
| run: ./gradlew test | ||
| run: ./gradlew test | ||
|
|
||
| - name : add coverage to PR | ||
| id: jacoco | ||
| uses: madrapps/[email protected] | ||
| with: | ||
| paths: | | ||
| ${{ github.workspace }}/**/build/reports/jacoco/test/jacocoTestReport.xml | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,14 +9,14 @@ | |
| @RequiredArgsConstructor | ||
| public enum GithubRepoException implements BaseException { | ||
|
|
||
| UNAUTHORIZED_GITHUBREPO_ACCESS(HttpStatus.FORBIDDEN, "리포지토리 접근 권한이 없습니다"), | ||
| NOT_FOUND_GITHUBREPO_NAME(HttpStatus.NOT_FOUND, "깃허브 리포지토리 이름을 찾을 수 없습니다"), | ||
| NOT_FOUND_GITHUBREPO(HttpStatus.NOT_FOUND, "깃허브 리포지토리를 찾을 수 없습니다"), | ||
| NOT_FOUND_GITHUBREPO_EMAIL(HttpStatus.NOT_FOUND, "기여자 이메일이 없습니다"), | ||
| EXCEED_GITHUBREPO_EMAIL(HttpStatus.BAD_REQUEST, "이메일은 5개까지 등록할 수 있습니다"), | ||
| INVALID_GITHUBREPO_URL(HttpStatus.BAD_REQUEST, "잘못된 URL 입니다."), | ||
| INVALID_GITHUBREPO_EMAIL(HttpStatus.BAD_REQUEST, "잘못된 이메일 입니다"), | ||
| INVALID_GITHUBREPO_DURATION(HttpStatus.NOT_FOUND, "종료일이 존재하지 않습니다"); | ||
| UNAUTHORIZED_GITHUB_REPO_ACCESS(HttpStatus.FORBIDDEN, "리포지토리 접근 권한이 없습니다"), | ||
| GITHUB_REPO_NAME_NOT_FOUND(HttpStatus.NOT_FOUND, "깃허브 리포지토리 이름을 찾을 수 없습니다"), | ||
| GITHUB_REPO_NOT_FOUND(HttpStatus.NOT_FOUND, "깃허브 리포지토리를 찾을 수 없습니다"), | ||
| GITHUB_REPO_EMAIL_NOT_FOUND(HttpStatus.NOT_FOUND, "기여자 이메일이 없습니다"), | ||
| GITHUB_REPO_EMAIL_LIMIT_EXCEED(HttpStatus.BAD_REQUEST, "이메일은 5개까지 등록할 수 있습니다"), | ||
| INVALID_GITHUB_REPO_URL(HttpStatus.BAD_REQUEST, "잘못된 URL 입니다."), | ||
| INVALID_GITHUB_REPO_EMAIL(HttpStatus.BAD_REQUEST, "잘못된 이메일 입니다"), | ||
| INVALID_GITHUB_REPO_DURATION(HttpStatus.NOT_FOUND, "종료일이 존재하지 않습니다"); | ||
|
Comment on lines
+12
to
+19
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 제가 했어야했는데 죄송합니다... |
||
|
|
||
| private final HttpStatus status; | ||
| private final String message; | ||
|
|
||
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
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
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
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
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
8 changes: 0 additions & 8 deletions
8
src/main/java/com/specialwarriors/conal/vote/dto/request/VoteSaveRequest.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Id기반으로 객체를 비교하면 어떤점에서 좋은가요?