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
How to write good tests?
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Alexander Beletsky
April 12, 2013
Programming
330
2
Share
How to write good tests?
Small talk that I gave to @debitoor guys about practices of writing tests.
Alexander Beletsky
April 12, 2013
More Decks by Alexander Beletsky
See All by Alexander Beletsky
Snapshot Testing: Going beyond UI
alexbeletsky
1
690
Tech Culture in Startups
alexbeletsky
0
240
TDD in JavaScript
alexbeletsky
4
860
This is Node.js
alexbeletsky
10
450
Likeastore
alexbeletsky
3
140
PaaS in your pocker with Dokku
alexbeletsky
7
2.6k
Building Single Page Applications
alexbeletsky
9
5.5k
.NET developer in JavaScript world
alexbeletsky
1
2.9k
Dynamic web development with Oak
alexbeletsky
1
630
Other Decks in Programming
See All in Programming
The Monolith Strikes Back: Why AI Agents ❤️ Rails Monoliths
serradura
0
270
KagglerがMixSeekを触ってみた
morim
0
370
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
840
PHPで TLSのプロトコルを実装してみる
higaki_program
0
740
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
140
まかせられるPM・まかせられないPM / DevTech GUILD Meetup
yusukemukoyama
0
110
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
140
飯MCP
yusukebe
0
490
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
110
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
350
AI時代の脳疲弊と向き合う ~言語学としてのPHP~
sakuraikotone
1
1.8k
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
420
Featured
See All Featured
For a Future-Friendly Web
brad_frost
183
10k
Typedesign – Prime Four
hannesfritz
42
3k
Evolving SEO for Evolving Search Engines
ryanjones
0
180
Done Done
chrislema
186
16k
How to build a perfect <img>
jonoalderson
1
5.4k
How to Talk to Developers About Accessibility
jct
2
170
Paper Plane (Part 1)
katiecoart
PRO
0
6.5k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
150
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
170
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
My Coaching Mixtape
mlcsv
0
96
Transcript
How to write good tests?
Honestly, I don’t know
But, there are properties of good tests…
… are written before code
… are running very fast
… are helping to find regressions
Writing unit tests is not about code verification
… it’s about code quality and design
Think different Think TDD
Could TDD be applied to everything?
In short, yes code, requirements, ui
Should TDD be applied to everything?
Probably, no simple tasks, prototypes
There are few techniques of writing tests
Classic school Kent Beck, 90’s Inside-Out design Focusing on logic
(algorithms)
London school Jason Gorman, 00’s Outside-In design Focusing on collaboration
Mocks
What about integration tests?
They are slow, hard to write, hard to setup… but
… they usually caught most nasty bugs.
None
Maintaining test driven cycle
None
Acceptance test (PO communication) API (integration) tests Utils (units) tests
Thanks, @alexbeletsky