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
John Chandler
April 08, 2011
Programming
0
3
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
7
Snowboarding Saved My Software Career
metaljoe
0
4
Neurodiversity in Tech
metaljoe
0
47
Neurodiversity Lightning Talk
metaljoe
0
3
Tackling a Legacy Codebase with (Micro)Services
metaljoe
0
4
Regular Expressions
metaljoe
0
7
Testing Workshop - Part 1 (PyConUK 2011)
metaljoe
0
14
Testing Workshop - Part 2 (PyConUK 2011)
metaljoe
0
8
Python, DOT, and Visualising Legacy Code The Lazy Way
metaljoe
0
13
Other Decks in Programming
See All in Programming
Using "modern" Ruby to build a better, faster Homebrew
mikemcquaid
2
270
Docker_OSS_ホスティング入門
satokoki645
0
140
Revisiting the Hotwire Landscape after Turbo 8 @ RailsConf 2024, Detroit
marcoroth
3
610
TypeScript Custom GitHub Action Development Tips
peaceiris
2
320
Powerfully Typed TypeScript
euxn23
3
1.7k
Next.js App Router
quramy
14
2.3k
Amazon Aurora Serverless v2が意外と高かった話と、AWS Database Migration Serviceの話
satoshi256kbyte
1
110
Deep Dive into React Stream/Serialize
mugi_uno
4
860
『Railsオワコン』と言われる時代に、なぜブルーモ証券はRailsを選ぶのか
free_world21
2
480
FoodGram
iseruuuuu
0
230
仕様と実装で学ぶOpenTelemetry
drumato
2
1.1k
GitHub Actionsの痒いところを埋めるサードパーティーランナー
dora1998
2
260
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
26
2.3k
jQuery: Nuts, Bolts and Bling
dougneiner
60
7.2k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Scaling GitHub
holman
457
140k
The Straight Up "How To Draw Better" Workshop
denniskardys
228
130k
The Pragmatic Product Professional
lauravandoore
26
5.9k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.7k
YesSQL, Process and Tooling at Scale
rocio
165
13k
Debugging Ruby Performance
tmm1
70
11k
Build The Right Thing And Hit Your Dates
maggiecrowley
25
2k
The Power of CSS Pseudo Elements
geoffreycrofte
62
5k
Atom: Resistance is Futile
akmur
260
25k
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!