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
910
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
710
Tech Culture in Startups
alexbeletsky
0
250
TDD in JavaScript
alexbeletsky
4
860
This is Node.js
alexbeletsky
10
470
Likeastore
alexbeletsky
3
170
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
気圧・高度・GPSを記録&可視化するアプリ「Koudo」を作った話
hjmkth
1
260
AIだと陥りがちなJakarta EE最新技術への移行時の落とし穴と解決策
tnagao7
0
110
Creating Composable Callables in Contemporary C++
rollbear
0
130
CSC307 Lecture 17
javiergs
PRO
0
320
Inside Stream API
skrb
1
720
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
6.1k
Oxlintのカスタムルールの現況
syumai
6
1.1k
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
280
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
260
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.3k
AIで効率化できた業務・日常
ochtum
0
140
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
110
Featured
See All Featured
Bash Introduction
62gerente
615
220k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
720
The Mindset for Success: Future Career Progression
greggifford
PRO
0
360
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
370
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
ラッコキーワード サービス紹介資料
rakko
1
3.7M
Side Projects
sachag
455
43k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
Building Applications with DynamoDB
mza
96
7.1k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Designing for humans not robots
tammielis
254
26k
Six Lessons from altMBA
skipperchong
29
4.3k
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