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
4
830
TDD in JavaScript
The slides I use for introduction to TDD course.
Alexander Beletsky
July 15, 2014
Tweet
Share
More Decks by Alexander Beletsky
See All by Alexander Beletsky
Snapshot Testing: Going beyond UI
alexbeletsky
1
560
Tech Culture in Startups
alexbeletsky
0
170
This is Node.js
alexbeletsky
10
380
Likeastore
alexbeletsky
3
120
PaaS in your pocker with Dokku
alexbeletsky
7
2.4k
Building Single Page Applications
alexbeletsky
9
5.2k
.NET developer in JavaScript world
alexbeletsky
1
2.7k
How to write good tests?
alexbeletsky
2
260
Dynamic web development with Oak
alexbeletsky
1
570
Other Decks in Programming
See All in Programming
Amazon Neptuneで始める初めてのグラフDB ー グラフDBを使う意味を考える ー
satoshi256kbyte
2
100
TypeScriptで 負荷テストを書こう 〜k6のシングルバイナリの秘密〜
dora1998
7
2.8k
最高の構文木の設計 2024年版
yui_knk
7
2.4k
BasicBasic認証
sadnessojisan
5
2.5k
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
1
970
dRuby 入門者によるあなたの身近にあるdRuby 入門
makicamel
4
340
LangGraphでのHuman-in-the-Loopの実装
os1ma
3
640
dotfiles について話したい #湘なんか
stefafafan
2
280
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
180
デザインシステムとコンポーネント指向によるフロントエンド開発プロセスの革新 / Innovation in Frontend Development Processes through Design Systems and Component-Oriented Architecture
nrslib
7
5k
フロントエンドのテストからアクセシビリティをしれっと広めていく
nano72mkn
3
700
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
380
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
78
8.5k
Web Components: a chance to create the future
zenorocha
308
41k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
29
2.5k
Designing for humans not robots
tammielis
248
25k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
38
9.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
27
8.9k
Principles of Awesome APIs and How to Build Them.
keavy
125
16k
Code Review Best Practice
trishagee
62
16k
Teambox: Starting and Learning
jrom
131
8.7k
YesSQL, Process and Tooling at Scale
rocio
167
14k
Docker and Python
trallard
39
3k
Art, The Web, and Tiny UX
lynnandtonic
294
20k
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..