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
TDD in JavaScript
Search
Alexander Beletsky
July 15, 2014
Programming
870
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TDD in JavaScript
The slides I use for introduction to TDD course.
Alexander Beletsky
July 15, 2014
More Decks by Alexander Beletsky
See All by Alexander Beletsky
Snapshot Testing: Going beyond UI
alexbeletsky
1
720
Tech Culture in Startups
alexbeletsky
0
260
This is Node.js
alexbeletsky
10
470
Likeastore
alexbeletsky
3
180
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
350
Dynamic web development with Oak
alexbeletsky
1
650
Other Decks in Programming
See All in Programming
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
660
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
190
Claude Code全社展開のためにやったことn選~プラグイン302個・コミッター271人を支えるために~
kenchan
5
1.5k
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
410
VibeCodingからAgenticWorkflowへ
starfish719
0
460
ソフトウェアエンジニアにとっての生成AI - 特性を知って使い倒す / generative ai for software enginner
kishida
3
590
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
290
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
4.4k
数百円から始めるRuby電子工作
tarosay
0
150
GDG Korea Android: 2026 I/O Extended ~ What's new in Android development tools
pluu
0
220
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
2.8k
Android CLI
fornewid
0
220
Featured
See All Featured
How to Talk to Developers About Accessibility
jct
2
510
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
570
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.1k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The SEO Collaboration Effect
kristinabergwall1
1
520
Being A Developer After 40
akosma
91
590k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.4k
Transcript
Test Driven .JS
[email protected]
http://beletsky.net http://twitter.com/alexbeletsky
What are we going to do?
What are we going to do? • prepare the environment
What are we going to do? • prepare the environment
• have TDD intro
What are we going to do? • prepare the environment
• have TDD intro • practice the basic skills
What are we going to do? • prepare the environment
• have TDD intro • practice the basic skills • discuss and have fun!
Development environment • node.js (npm) ~ 0.10.x • git ~
1.8.x • Chrome / Firefox / IE • Sublime Text (Web Storm, Notepad)
What the heck is TDD?
None
The Three Laws of TDD • No production code without
test • No more unit test sufficient to fall • No more production code sufficient to pass
But Why?
Less bugs, more speed
Regression stability
Safe(r) refactoring
Test Driven Design
Team / Code culture
FUN :)
TDD is all about discipline
:shu :ha :ri
Let’s get STARTED..