-
Notifications
You must be signed in to change notification settings - Fork 65
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
202102647 변인경 #56
Open
Ink-By
wants to merge
14
commits into
2023-RealCoding:main
Choose a base branch
from
Ink-By:homework/testing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
202102647 변인경 #56
Conversation
This file contains 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
명세란 무엇일까?
소프트웨어 개발 프로세스의 시작인 요구사항을 분석하고 정의하는 단계에서 작성되는 최종 산출물
단위테스트에서 Given / When / Then 에 대해 설명해주세요
@SpringBootTest
Given: 시나리오
테스트를 준비하는 과정, 테스트에 필요한 변수, 입력값을 준비하는 단계이다.
When: 실행
실제로 테스트를 실행해보는 단계이다.
Then: 검증
마지막으로 테스트를 검증하는 단계
예상값과 테스트 결과값을 비교하여 검증한다.
테스트코드를 작성하는 이유
의도된대로 작동하는지 검증할 수 있고, 빠른 피드백을 받을 수 있고, 동작 이해에 도움이 되고, software 품질을 향상시킬 수 있다.
@SpringBootTest 가 하는 역할은?
테스트 환경의 역할을 합니다
@test 가 하는 역할은?
테스트를 실행하는 역할을 합니다
mockito를 쓰는 이유는?
진짜 객체와 비슷하게 동작하지만 프로그래머가 직접 행동을 관리하는 가짜 객체 대신 실행합니다. 즉, 의존성을 줄이는 역할을 합니다.
assertAll 가 하는 역할은?
검증, 객체등 데이터가 많을 경우 검증할 데이터들을 모아놓기 위해서입니다.