런던파
-
단위 테스트 정리 1책책책 책을 읽읍시다/프로그래밍 2022. 6. 21. 22:55
들어가며 C# 코드 기반으로 테스트 스위트(test suite) 구축에 대해 설명한 책으로 저자는 블라디미르 코리코프(Vladimir Khorikov)다. 자바와 비슷한 컨셉의 C#으로 예제가 짜여져 있어 자바 개발자인 내가 코드를 읽기에 부담없었고, 한편으론 "대학교 다닐 때 배우던 C#이 아니구나, 자바에서 없는 기능(인스턴스 변수에 get; set;만 붙여도 getter/setter가 생성된다)들도 지원하네"하며 재미있게 읽었다. 회사 내부에 공유하기 위해 정리했는데, 저작권은 나에게 있으므로 재사용한다^^ 이번 글에서는 아래 차례에서 1부 '더 큰 그림'만 다뤄보자. 차례 더 큰 그림 단위 테스트의 목표 단위 테스트란 무엇인가 단위 테스트 구조 개발자에게 도움이 되는 테스트 만들기 좋은 단위 테스..