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
820
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
610
Tech Culture in Startups
alexbeletsky
0
180
TDD in JavaScript
alexbeletsky
4
830
This is Node.js
alexbeletsky
10
400
Likeastore
alexbeletsky
3
120
PaaS in your pocker with Dokku
alexbeletsky
7
2.5k
Building Single Page Applications
alexbeletsky
9
5.3k
.NET developer in JavaScript world
alexbeletsky
1
2.7k
How to write good tests?
alexbeletsky
2
290
Other Decks in Programming
See All in Programming
DRFを少しずつ オニオンアーキテクチャに寄せていく DjangoCongress JP 2025
nealle
2
190
一休.com のログイン体験を支える技術 〜Web Components x Vue.js 活用事例と最適化について〜
atsumim
0
700
Kubernetes History Inspector(KHI)を触ってみた
bells17
0
240
仕様変更に耐えるための"今の"DRY原則を考える
mkmk884
8
2.6k
パスキーのすべて ── 導入・UX設計・実装の紹介 / 20250213 パスキー開発者の集い
kuralab
3
850
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
280
負債になりにくいCSSをデザイナとつくるには?
fsubal
10
2.5k
Java Webフレームワークの現状 / java web framework at burikaigi
kishida
9
2.2k
ソフトウェアエンジニアの成長
masuda220
PRO
12
2k
Visual StudioのGitHub Copilotでいろいろやってみる
tomokusaba
1
180
もう僕は OpenAPI を書きたくない
sgash708
5
1.8k
Conform を推す - Advocating for Conform
mizoguchicoji
3
700
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
350
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
We Have a Design System, Now What?
morganepeng
51
7.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.2k
Into the Great Unknown - MozCon
thekraken
35
1.6k
Speed Design
sergeychernyshev
27
800
A designer walks into a library…
pauljervisheath
205
24k
Six Lessons from altMBA
skipperchong
27
3.6k
Optimizing for Happiness
mojombo
376
70k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
10
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