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
900
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
700
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
340
Other Decks in Programming
See All in Programming
From Formal Specification to Property Based Test
ohbarye
0
2.4k
Spec Driven Development | AI Summit Vilnius
danielsogl
PRO
1
150
Back to the roots of date
jinroq
0
810
運転動画を検索可能にする〜Cosmos-Embed1とDatabricks Vector Searchで〜/cosmos-embed1-databricks-vector-search
studio_graph
1
740
Symfony AI in Action - SymfonyLive Berlin 2026
chr_hertel
1
140
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.7k
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
500
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
490
2026年のソフトウェア開発を考える(2026/05版) / Software Engineering Scrum Fest Niigata 2026 Edition
twada
PRO
23
12k
ソースコード→AST→オペコード、の旅を覗いてみる
o0h
PRO
1
130
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
1.8k
[RubyKaigi 2026] Require Hooks
palkan
1
310
Featured
See All Featured
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
910
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
270
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
HDC tutorial
michielstock
2
660
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
210
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
180
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
190
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
550
30 Presentation Tips
portentint
PRO
1
290
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