tdd introduction

31
TDD の ののの のの のの (id: or @ htada) 2010-01-30 Thrive on Development

Upload: hideaki-tada

Post on 25-Jan-2015

1.145 views

Category:

Technology


4 download

DESCRIPTION

Thrive on Development #1 TDD資料

TRANSCRIPT

Page 1: Tdd Introduction

TDD の ご紹介

多田 秀章 (id: or @ htada)2010-01-30 Thrive on Development

Page 2: Tdd Introduction

Agenda•TDD って?•TDD って?•TDD って?

Page 3: Tdd Introduction
Page 4: Tdd Introduction

TestDrivenDevelopment

Page 5: Tdd Introduction

テスト駆動開発

Page 6: Tdd Introduction

テストを駆動する開発

Page 7: Tdd Introduction

テストが駆動する開発

Page 8: Tdd Introduction

動作する、きれいなコードへき

れい

汚い

動かない 動く

Page 9: Tdd Introduction

動作する、きれいなコードへき

れい

汚い

動かない 動く

こっち

Page 10: Tdd Introduction

駆動

Page 11: Tdd Introduction
Page 12: Tdd Introduction

不安

Page 13: Tdd Introduction

不安を管理する

Page 14: Tdd Introduction

Edit & Pray

Page 15: Tdd Introduction
Page 16: Tdd Introduction

受入または拒否を導く手続き

Page 17: Tdd Introduction

動作する、きれいなコードへき

れい

汚い

動かない 動く

Page 18: Tdd Introduction

目の前のテストに集中

きれい

汚い

動かない 動く

小さく目標設定

Page 19: Tdd Introduction

自動テスト装置

Page 20: Tdd Introduction

目標として設定したテストが、通過後はデグレ検知器に

きれい

汚い

動かない 動く

テストの楔動作を担保

Page 21: Tdd Introduction
Page 22: Tdd Introduction

TDD のサイクル1. テストを書き2. そのテストを実行して失敗させ (Red)3. 目的のコードを書き4. 1 で書いたテストを成功させ (Green)5. テストが通るままでリファクタリングを

行う (Refactor)6. 1 ~ 5 を繰り返す

Page 23: Tdd Introduction

疑わしい推論に時間を費やすのではなく、

変化を起こし、

テストを実行することでコンピュータに尋ねる

Page 24: Tdd Introduction

勇気

Page 25: Tdd Introduction

勇気

Page 26: Tdd Introduction
Page 27: Tdd Introduction

http://d.hatena.ne.jp/t-wada

Page 28: Tdd Introduction
Page 29: Tdd Introduction

I can only show you the door

Page 30: Tdd Introduction

You have to walk through it.

Page 31: Tdd Introduction