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
770
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
530
Tech Culture in Startups
alexbeletsky
0
150
TDD in JavaScript
alexbeletsky
4
830
This is Node.js
alexbeletsky
10
370
Likeastore
alexbeletsky
3
120
PaaS in your pocker with Dokku
alexbeletsky
7
2.3k
Building Single Page Applications
alexbeletsky
9
5.2k
.NET developer in JavaScript world
alexbeletsky
1
2.6k
How to write good tests?
alexbeletsky
2
250
Other Decks in Programming
See All in Programming
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
6
1.3k
From Spring Boot 2 to Spring Boot 3 with Java 21 and Jakarta EE
ivargrimstad
0
890
Goのmultiple errorsについて (2024年4月版)
syumai
4
1.3k
AmperとFleetを使ったAndroidアプリ
yoppie
0
280
Apache Hive 4 on Treasure Data
ryukobayashi
1
450
CDKコントリビュートの最初の壁を越えよう! -簡単issueの見つけ方-
badmintoncryer
3
360
PHPはいつから死んでいるかの調査
chiroruxx
2
430
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
1k
Implementing Design Systems in Swift
seyfoyun
2
500
Ruby Function Composition
bkuhlmann
1
340
Ruby Pattern Matching
bkuhlmann
0
940
Git Rebase
bkuhlmann
11
1.6k
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
423
63k
Design by the Numbers
sachag
274
18k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
80
44k
We Have a Design System, Now What?
morganepeng
43
6.8k
4 Signs Your Business is Dying
shpigford
176
21k
Designing for Performance
lara
601
67k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
12
1k
Building Better People: How to give real-time feedback that sticks.
wjessup
356
18k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
GraphQLの誤解/rethinking-graphql
sonatard
56
9.3k
From Idea to $5000 a Month in 5 Months
shpigford
378
45k
Adopting Sorbet at Scale
ufuk
69
8.6k
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