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
800
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
570
Tech Culture in Startups
alexbeletsky
0
170
TDD in JavaScript
alexbeletsky
4
830
This is Node.js
alexbeletsky
10
390
Likeastore
alexbeletsky
3
120
PaaS in your pocker with Dokku
alexbeletsky
7
2.4k
Building Single Page Applications
alexbeletsky
9
5.3k
.NET developer in JavaScript world
alexbeletsky
1
2.7k
How to write good tests?
alexbeletsky
2
260
Other Decks in Programming
See All in Programming
AWS CDKを用いたセキュアなCI/CDパイプラインの構築 / Build a secure CI/CD pipeline using AWS CDK
seike460
PRO
3
620
Kotlin Multiplatform at Stable and Beyond (Kotlin Vienna, October 2024)
zsmb
2
360
VS Code extension: ドラッグ&ドロップでファイルを並び替える
ttrace
0
170
2024-10-02 dev2next - Application Observability like you've never heard before
jonatan_ivanov
0
180
Real-time message handling and notifications with API Platform and Symfony
alli83
1
110
Integrating AI in Your Enterprise Java Applications
ivargrimstad
0
180
선언형 UI를 학습할 때 알아둬야하는 키워드들
l2hyunwoo
0
140
ポケモンで考えるコミュニケーション / Communication Lessons from Pokémon
mackey0225
4
170
WEBアプリケーションにおけるAWS Lambdaを用いた大規模な非同期処理の実践
delhi09
PRO
7
4.2k
個人開発で使ってるやつを紹介する回
yohfee
1
700
Removing Corepack
yosuke_furukawa
PRO
9
1.2k
PHPを書く理由、PHPを書いていて良い理由 / Reasons to write PHP and why it is good to write PHP
seike460
PRO
5
460
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
249
21k
What's new in Ruby 2.0
geeforr
341
31k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
327
21k
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
What the flash - Photography Introduction
edds
67
11k
Facilitating Awesome Meetings
lara
49
6k
Atom: Resistance is Futile
akmur
261
25k
Design by the Numbers
sachag
278
19k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
355
29k
Build The Right Thing And Hit Your Dates
maggiecrowley
31
2.3k
How GitHub Uses GitHub to Build GitHub
holman
473
290k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
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