[DEV-176/BE] test: QnaSetController 테스트 작성#369
Conversation
…ontroller-통합-테스트-작성
…ontroller-통합-테스트-작성
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Summary of ChangesHello @zxc534, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 Pull Request는 Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
QnaSetController에 대한 통합 테스트를 추가하는 좋은 PR입니다. 서비스 레이어에서 상태 유효성 검사를 강제하는 변경 사항도 올바르게 적용되었습니다.
테스트를 개선하기 위한 몇 가지 제안 사항이 있습니다:
- 일부 테스트 이름이 오해의 소지가 있습니다.
- 다수의 테스트가 HTTP 상태 코드만 확인하고 있어 비즈니스 로직의 버그를 놓칠 수 있습니다. 특정 사례를 지적하고 데이터베이스 상태 변경을 확인하는 단언문(assertion)을 추가할 것을 제안했습니다.
- 테스트 설정에 중복된 코드가 있어 리팩토링이 필요해 보입니다.
자세한 내용은 각 코멘트를 확인해주세요.
backend/src/test/java/com/shyashyashya/refit/integration/qnaset/QnaSetIntegrationTest.java
Show resolved
Hide resolved
backend/src/test/java/com/shyashyashya/refit/integration/qnaset/QnaSetIntegrationTest.java
Outdated
Show resolved
Hide resolved
backend/src/test/java/com/shyashyashya/refit/integration/qnaset/QnaSetIntegrationTest.java
Show resolved
Hide resolved
kckc0608
left a comment
There was a problem hiding this comment.
수고하셨습니다~! 코멘트 몇 가지 남겼으니 확인 부탁드립니다!
관련 이슈
close #249
작업한 내용