Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Test Driven Development (A Short Introduction)
Search
John Chandler
April 08, 2011
Programming
16
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Test Driven Development (A Short Introduction)
Internal company presentation, 2011.
John Chandler
April 08, 2011
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
17
Snowboarding Saved My Software Career
metaljoe
0
14
Neurodiversity in Tech
metaljoe
0
68
Neurodiversity Lightning Talk
metaljoe
0
18
Tackling a Legacy Codebase with (Micro)Services
metaljoe
0
14
Regular Expressions
metaljoe
0
18
Testing Workshop - Part 1 (PyConUK 2011)
metaljoe
0
25
Testing Workshop - Part 2 (PyConUK 2011)
metaljoe
0
16
Python, DOT, and Visualising Legacy Code The Lazy Way
metaljoe
0
23
Other Decks in Programming
See All in Programming
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
1.7k
R8 の設定見直しでアプリサイズ削減
andpad
0
220
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
1k
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
1
190
[2026-10-09]一枚の布で作らなくてもいい。 信頼性は「パッチワーク」で紡がれる~既存の運用と新しい可能性をつなぎ合わせてきたCREの話~
tosite
0
110
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
気持ちぃ〜角丸 Squircle
ryu1013
0
330
AIに “答え“を書かせるのを やめてみた
___akari11
0
130
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
520
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.7k
Performance Optimization With LLMs
xleitix
0
200
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
130
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
4
540
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
Code Reviewing Like a Champion
maltzj
529
40k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
760
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
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!