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
590
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
270
Other Decks in Programming
See All in Programming
Arm移行タイムアタック
qnighy
0
340
ヤプリ新卒SREの オンボーディング
masaki12
0
130
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
デザインパターンで理解するLLMエージェントの作り方 / How to develop an LLM agent using agentic design patterns
rkaga
3
300
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
300
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
3
1.2k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Figma Dev Modeで変わる!Flutterの開発体験
watanave
0
150
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
1k
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
120
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
630
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.4k
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
88
5.7k
Automating Front-end Workflow
addyosmani
1366
200k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
Happy Clients
brianwarren
98
6.7k
Ruby is Unlike a Banana
tanoku
97
11k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
Building Your Own Lightsaber
phodgson
103
6.1k
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