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 JavaScript
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Alexander Beletsky
November 17, 2012
Programming
890
3
Share
Test driven JavaScript
The slides from master class I did on XP Days 2012
Alexander Beletsky
November 17, 2012
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
460
Likeastore
alexbeletsky
3
150
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
How to write good tests?
alexbeletsky
2
330
Other Decks in Programming
See All in Programming
実用!Hono RPC2026
yodaka
2
270
From Formal Specification to Property Based Test
ohbarye
0
340
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
160
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
240
The Less-Told Story of Socket Timeouts
coe401_
3
620
Spec Driven Development | AI Summit Vilnius
danielsogl
PRO
1
110
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
210
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
450
PHPer、Cloudflare に引っ越す
suguruooki
1
110
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
160
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
860
Featured
See All Featured
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
BBQ
matthewcrist
89
10k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.9k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
530
Paper Plane
katiecoart
PRO
1
49k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
230
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
780
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
510
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
Building AI with AI
inesmontani
PRO
1
920
Transcript
TEST DRIVEN JAVASCRIPT Show & Talk
None
>5 years of programming C# for fun and profit
>5 years of practicing TDD
“No line of production code without unit test “ rule
that worked perfect for me during .NET programming
But it FAILED miserably that I started JavaScript programming
None
> Reason 1 JavaScript code seems to be small and
easy
> Reason 2 Leaving comfort zone is always hard
> Reason 3 DOM appears to be not testable at
first glance
None
Frameworks && Tools
qUnit, Jasmine, Mocha
Testing business logic
Testing UI/DOM code
Mocking/Spying on objects
Testing AJAX-dependent code
Continuous Testing with LiveReload
Final recommendations: 1. Don't be afraid to start testing. 2.
Baby steps practice works. 3. Use MV* frameworks.
Thanks, @alexbeletsky