Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Test Driven Development (A Short Introduction)
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
John Chandler
April 08, 2011
Programming
0
13
Test Driven Development (A Short Introduction)
Internal company presentation, 2011.
John Chandler
April 08, 2011
Tweet
Share
More Decks by John Chandler
See All by John Chandler
Everything I've Learnt from Russel Winder's Talks, in 5 Minutes (A Tribute)
metaljoe
0
13
Snowboarding Saved My Software Career
metaljoe
0
11
Neurodiversity in Tech
metaljoe
0
55
Neurodiversity Lightning Talk
metaljoe
0
14
Tackling a Legacy Codebase with (Micro)Services
metaljoe
0
11
Regular Expressions
metaljoe
0
16
Testing Workshop - Part 1 (PyConUK 2011)
metaljoe
0
19
Testing Workshop - Part 2 (PyConUK 2011)
metaljoe
0
14
Python, DOT, and Visualising Legacy Code The Lazy Way
metaljoe
0
20
Other Decks in Programming
See All in Programming
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
180
Data-Centric Kaggle
isax1015
2
770
高速開発のためのコード整理術
sutetotanuki
1
400
Implementation Patterns
denyspoltorak
0
290
Architectural Extensions
denyspoltorak
0
290
ぼくの開発環境2026
yuzneri
0
220
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
570
組織で育むオブザーバビリティ
ryota_hnk
0
170
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
280
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2.3k
Featured
See All Featured
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
65
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
280
Designing Experiences People Love
moore
144
24k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
A designer walks into a library…
pauljervisheath
210
24k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
450
Side Projects
sachag
455
43k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
The World Runs on Bad Software
bkeepers
PRO
72
12k
ラッコキーワード サービス紹介資料
rakko
1
2.3M
It's Worth the Effort
3n
188
29k
Transcript
Test Driven Development (a short introduction) (C) John Chandler 2011
Perfect Code? First Time? Every Time? (yeah right)
Confidence Through Tests Manual Tests = Error Prone Automated Tests
= Repeatable
Writing Tests After the Code Is Useful
Writing Tests Before the Code Helps us...
Think about What before we decide How
Write code that is easy to test
Write small units of code at a time
Ensure all code has test coverage
Know when to stop writing code
First we write a test that fails
Then we write code to make the test pass
Did we break anything?
Are we more confident?
Refactor if necessary Refactor with confidence
Then repeat until done
What else?
Fail Fast Early Feedback
Easier to learn unfamiliar code
Easier to change unfamiliar code
Supplementary code documentation
Give confidence to Others
Continuous Integration
Now go write tests!