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
710
Tech Culture in Startups
alexbeletsky
0
260
TDD in JavaScript
alexbeletsky
4
860
This is Node.js
alexbeletsky
10
470
Likeastore
alexbeletsky
3
170
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
650
Other Decks in Programming
See All in Programming
Agentic UI
manfredsteyer
PRO
0
220
Performance Engineering for Everyone
elenatanasoiu
0
250
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
190
スマートグラスで並列バイブコーディング
hyshu
0
280
これからAgentCoreを触る方へトレンドはGatewayです
har1101
6
460
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
330
Signal Forms: Details & Live Coding @enterJS 2026 in Mannheim
manfredsteyer
PRO
0
210
Webフレームワークの ベンチマークについて
yusukebe
0
190
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
0
360
吝嗇家のためのAI活用 / AI development for miser - ChatGPT + Issue Driven Development
tooppoo
0
170
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
180
継続モナドとリアクティブプログラミング
yukikurage
2
240
Featured
See All Featured
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
490
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
380
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.4k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
250
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.1k
Mobile First: as difficult as doing things right
swwweet
225
10k
Test your architecture with Archunit
thirion
1
2.3k
Accessibility Awareness
sabderemane
1
150
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
230
Statistics for Hackers
jakevdp
799
230k
Google's AI Overviews - The New Search
badams
0
1.1k
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