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
Alexander Beletsky
November 17, 2012
Programming
3
850
Test driven JavaScript
The slides from master class I did on XP Days 2012
Alexander Beletsky
November 17, 2012
Tweet
Share
More Decks by Alexander Beletsky
See All by Alexander Beletsky
Snapshot Testing: Going beyond UI
alexbeletsky
1
650
Tech Culture in Startups
alexbeletsky
0
210
TDD in JavaScript
alexbeletsky
4
840
This is Node.js
alexbeletsky
10
430
Likeastore
alexbeletsky
3
130
PaaS in your pocker with Dokku
alexbeletsky
7
2.5k
Building Single Page Applications
alexbeletsky
9
5.4k
.NET developer in JavaScript world
alexbeletsky
1
2.8k
How to write good tests?
alexbeletsky
2
310
Other Decks in Programming
See All in Programming
Reactの歴史を振り返る
tutinoko
1
170
WebAssemblyインタプリタを書く ~Component Modelを添えて~
ruccho
1
580
Flutter로 Gemini와 MCP를 활용한 Agentic App 만들기 - 박제창 2025 I/O Extended Seoul
itsmedreamwalker
0
120
令和最新版手のひらコンピュータ
koba789
13
6.2k
DynamoDBは怖くない!〜テーブル設計の勘所とテスト戦略〜
hyamazaki
0
190
コーディングは技術者(エンジニア)の嗜みでして / Learning the System Development Mindset from Rock Lady
mackey0225
2
230
MCP連携で加速するAI駆動開発/mcp integration accelerates ai-driven-development
bpstudy
0
280
Terraform やるなら公式スタイルガイドを読もう 〜重要項目 10選〜
hiyanger
12
2.9k
『リコリス・リコイル』に学ぶ!! 〜キャリア戦略における計画的偶発性理論と変わる勇気の重要性〜
wanko_it
1
260
中級グラフィックス入門~効率的なメッシュレット描画~
projectasura
4
2.5k
No Install CMS戦略 〜 5年先を見据えたフロントエンド開発を考える / no_install_cms
rdlabo
0
470
Scale out your Claude Code ~自社専用Agentで10xする開発プロセス~
yukukotani
8
1.6k
Featured
See All Featured
A Tale of Four Properties
chriscoyier
160
23k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.5k
Done Done
chrislema
185
16k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
110
19k
Scaling GitHub
holman
461
140k
Visualization
eitanlees
146
16k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
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