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
Alexander Beletsky
April 12, 2013
Programming
350
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
720
Tech Culture in Startups
alexbeletsky
0
260
TDD in JavaScript
alexbeletsky
4
870
This is Node.js
alexbeletsky
10
470
Likeastore
alexbeletsky
3
180
PaaS in your pocker with Dokku
alexbeletsky
7
2.7k
Building Single Page Applications
alexbeletsky
9
5.5k
.NET developer in JavaScript world
alexbeletsky
1
2.9k
Dynamic web development with Oak
alexbeletsky
1
650
Other Decks in Programming
See All in Programming
React本体のコードリーディング
high_g_engineer
1
150
What's New in Android 2026
veronikapj
0
270
AIと壁打ちしながら進めるコスト管理
fufuhu
0
1.1k
SlackアプリとLambdaの 連携を構築した話
pawn_4_s
1
130
リアルな遅延を測る仕様
kota_yata
1
120
VibeCodingからAgenticWorkflowへ
starfish719
0
700
まずはプロンプトガイドを読もう、話はそれからだ
kiakiraki
1
160
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
390
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
530
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
210
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
170
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
0
1.9k
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
290
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
790
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Faster Mobile Websites
deanohume
310
32k
Deep Space Network (abreviated)
tonyrice
0
260
Raft: Consensus for Rubyists
vanstee
141
7.6k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
260
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
270
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.8k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
810
Building Adaptive Systems
keathley
44
3.2k
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