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
780
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
550
Tech Culture in Startups
alexbeletsky
0
160
TDD in JavaScript
alexbeletsky
4
830
This is Node.js
alexbeletsky
10
380
Likeastore
alexbeletsky
3
120
PaaS in your pocker with Dokku
alexbeletsky
7
2.4k
Building Single Page Applications
alexbeletsky
9
5.2k
.NET developer in JavaScript world
alexbeletsky
1
2.7k
How to write good tests?
alexbeletsky
2
250
Other Decks in Programming
See All in Programming
Architectures with Lightweight Stores: New Rules and Options
manfredsteyer
PRO
0
100
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
140
3 Effective Rules for Success with Signals in Angular
manfredsteyer
PRO
0
120
【Go言語】golangci-lintの使い方
tomo1227
0
280
GraphQL はいいぞ! ~Laravel で学ぶ GraphQL 入門~
azuki
1
160
Terraformテスト入門
msato
0
540
Folding Cheat Sheet #7
philipschwarz
PRO
0
150
feature環境をGitHub ActionsとCloudFormationでいい感じに管理する
nealle
2
310
Introduction to GitOps
hwchiu
0
110
HMSコンペ 11th Solution (team : kansai-kaggler)
t88
1
680
CSC307 Lecture 13
javiergs
PRO
0
150
「2024年版 Kotlin サーバーサイドプログラミング実践開発」の補講 〜O/Rマッパー編〜
n_takehata
2
260
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
332
56k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
105
6.8k
Typedesign – Prime Four
hannesfritz
37
2.2k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
353
29k
Building Adaptive Systems
keathley
34
2k
The Power of CSS Pseudo Elements
geoffreycrofte
64
5.2k
A designer walks into a library…
pauljervisheath
201
24k
Fantastic passwords and where to find them - at NoRuKo
philnash
42
2.7k
How to name files
jennybc
67
96k
How GitHub Uses GitHub to Build GitHub
holman
471
290k
Become a Pro
speakerdeck
PRO
15
4.8k
The Straight Up "How To Draw Better" Workshop
denniskardys
229
130k
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