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
CSC307 Lecture 09
javiergs
PRO
1
840
AI & Enginnering
codelynx
0
110
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
570
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
170
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
460
CSC307 Lecture 02
javiergs
PRO
1
780
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.5k
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
並行開発のためのコードレビュー
miyukiw
0
170
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Between Models and Reality
mayunak
1
190
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
GitHub's CSS Performance
jonrohan
1032
470k
30 Presentation Tips
portentint
PRO
1
220
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
Believing is Seeing
oripsolob
1
55
Scaling GitHub
holman
464
140k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
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!