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
1k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
720
Tech Culture in Startups
alexbeletsky
0
260
TDD in JavaScript
alexbeletsky
4
870
This is Node.js
alexbeletsky
10
470
Likeastore
alexbeletsky
3
180
PaaS in your pocker with Dokku
alexbeletsky
7
2.7k
Building Single Page Applications
alexbeletsky
9
5.5k
.NET developer in JavaScript world
alexbeletsky
1
2.9k
How to write good tests?
alexbeletsky
2
350
Other Decks in Programming
See All in Programming
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
140
5分で問診!Composer セキュリティ健康診断
codmoninc
0
950
torikago - Ruby::Boxで照らすモジュラモノリスの実行境界
se4weed
1
360
JAWS-UG横浜 #102 AWSサ終供養LT会 成仏できない AWS サービスたち 〜本日、三体供養します〜
maroon1st
0
350
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
550
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
110
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
260
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
140
ビデオ通話が繋がる0.2秒で何が起きているのか
supurazako
2
180
FDEが実現するAI駆動経営の現在地
gonta
2
280
いまどきの Codex で開発する visionOS アプリの開発スタイルについて
karad
0
130
メールのエイリアス機能を履き違えない
isshinfunada
0
230
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
46
8.2k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
630
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
380
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
200
A designer walks into a library…
pauljervisheath
211
24k
Automating Front-end Workflow
addyosmani
1369
210k
WCS-LA-2024
lcolladotor
0
790
Rails Girls Zürich Keynote
gr2m
96
14k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
400
Un-Boring Meetings
codingconduct
0
380
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
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