-
Notifications
You must be signed in to change notification settings - Fork 0
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
테스트 코드 작성 #17
테스트 코드 작성 #17
Conversation
DispatchQueue를 사용하지 않는 방법에서 막힘
let error = NetworkError.timeOut | ||
repository.mockError = error |
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.
많은곳에서 이와 같은 코드가 사용되는데 setUpWithError와 같은 함수로 하나 만들어도 좋을것 같습니다!
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.
적용했습니다 ~!
switch result { | ||
case .success(let data): | ||
XCTAssertFalse(data.program.isEmpty, "받아온 데이터가 비어있음") | ||
XCTAssertEqual(data.program.first?.name, expectedName) |
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.
반환된 data.program의 모든 요소를 검증하거나, 반환된 데이터가 정확히 예상한 데이터와 일치하는지 전체적으로 확인이 필요해보입니다.
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.
적용한 커밋입니다 ! d1f81cc
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.
으아.. 내일 한번더 이부분에 대해서 얘기해보시죠!! 머지 합시다.!
Quality Gate failedFailed conditions |
No description provided.