Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
730
Tech Culture in Startups
alexbeletsky
0
280
TDD in JavaScript
alexbeletsky
4
870
This is Node.js
alexbeletsky
10
490
Likeastore
alexbeletsky
3
200
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
360
Other Decks in Programming
See All in Programming
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
12
11k
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
170
最近”作らせてる” ローカルAIアプリの話
akit37
0
510
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
220
No More NoSuchMethodError
exoego
1
120
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
270
Jetpack Compose Mechanisms
skydoves
3
900
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
5
1.3k
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
160
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
100
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
110
Railsバージョンを4倍にした話
optim
0
830
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
470
Designing for humans not robots
tammielis
254
26k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Leo the Paperboy
mayatellez
10
2.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
730
Google's AI Overviews - The New Search
badams
0
1.6k
Into the Great Unknown - MozCon
thekraken
41
2.8k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
650
Balancing Empowerment & Direction
lara
6
1.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