Skip to content
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

202102615 김민지 #68

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

alswl020208
Copy link

명세란?
소프트웨어 개발 프로세스의 시작인 요구사항을 분석하고, 정의하는 단계에서 작성되는 최종 산출물이다.

단위테스트에서 Given / When / Then란?
Given: 테스트를 준비하는 과정, 테스트에 필요한 변수를 준비하는 것이다.
When: 실제로 테스트를 실행해보는 단계이다.
Then: 마지막으로 테스트를 검증하는 단계이다.

테스트 코드를 작성하는 이유는?
동작, 데이터등이 내가 의도한대로 처리가 되는지 확인하기 위해서이다.

@SpringBootTest가 하는 역할은?
Spring Application의 통합 테스트를 제공하는 Annotation이다.

@test가 하는 역할은?
해당 메소드가 테스트에 사용된다는 것을 알려주는 Annotation이다.

mockito를 쓰는 이유는?
객체를 쉽게 만들고, 관리하고, 검증하는 방법을 제공해주기 때문이다.

asssertAll이 하는 역할은?
여러 검증 결과 중 실패한 검증이 있을 경우에도 모든 검증을 수행하도록 해준다.

image

@inspire12
Copy link
Collaborator

github action 을 통해 테스트가 통과한 결과를 캡쳐해주셔야합니다 ㅠㅠ
build > Test with gradle 를 눌러서 나온 화면에서 테스트결과를 캡쳐해주세요

@alswl020208
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants