Skip to Content
훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
book

훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
135
11
장
테스트하기
짧은 피드백 과정의 강력하면서도 매력적인 일례로서, 이는 레드-그린-리팩토링(
red
-
green
-
refactor
) 주기로도 불린다. 이는 테스트 실패인 경우 빨간색으로 보여주고 테스트 성공인
경우 녹색으로 보여주는 유닛 테스트 도구를 감안한 용어다.
설령 테스트 우선이라는 진언에 경의를 표하지 않더라도, 피드백 절차를 줄이고, 특정 범위에
대해 코드를 작성해가며(혹은 코드를 작성한 직후) 해당 범위에 대한 유닛 테스트 코드를 작성
하라. 유닛 테스트를 통해 설계를 실제로 진행할 수도 있다. 모든 것이 기능적으로 정확성을 보
장하고 퇴행을 방어할 뿐만 아니라, 클래스
API
가 실제로 어떻게 사용될지 그리고 얼마나 간결
한지 확인할 수 있는 최고의 방법이다. 이는 소중한 피드백이다. 또한 테스트와 클래스 작성을
마치고 나면, 테스트 코드는 클래스 사용에 대한 유용한 문서가 될 수 있다.
TIP
코드를 작성하면서 테스트를 같이 작성하라. 테스트 작성을 미루면 그만큼 테스트 효과가 줄어들 것이다.
이처럼 빠르게 자주 실행하는 테스트 접근 방법은 유닛 테스트와 통합 테스트, 시스템 테스트
모두에 적용할 수 있다. 설령 프로젝트가 자동화된 시스템 테스트를 위한 기반 구조를 포함하
지 않는다 해도, 프로그래머는 책임을 지고 유닛 테스트와 더불어
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드

클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드

정원천, 보리스 숄, 트렌트 스완슨, 피터 야우쇼베츠

Publisher Resources

ISBN: 9788968482304