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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Alexander Beletsky
July 15, 2014
Programming
860
4
Share
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
690
Tech Culture in Startups
alexbeletsky
0
240
This is Node.js
alexbeletsky
10
450
Likeastore
alexbeletsky
3
140
PaaS in your pocker with Dokku
alexbeletsky
7
2.6k
Building Single Page Applications
alexbeletsky
9
5.5k
.NET developer in JavaScript world
alexbeletsky
1
2.9k
How to write good tests?
alexbeletsky
2
330
Dynamic web development with Oak
alexbeletsky
1
620
Other Decks in Programming
See All in Programming
PHPで TLSのプロトコルを実装してみる
higaki_program
0
730
AI時代の脳疲弊と向き合う ~言語学としてのPHP~
sakuraikotone
1
1.8k
安いハードウェアでVulkan
fadis
1
890
見せてもらおうか、 OpenSearchの性能とやらを!
shunta27
1
170
AWS re:Invent 2025の少し振り返り + DevOps AgentとBacklogを連携させてみた
satoshi256kbyte
2
140
AI活用のコスパを最大化する方法
ochtum
0
370
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
950
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
5.6k
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
520
へんな働き方
yusukebe
6
2.9k
PHPで TLSのプロトコルを実装してみるをもう一度しゃべりたい
higaki_program
0
170
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
130
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
430
The Curious Case for Waylosing
cassininazir
0
290
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
340
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
110
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Tell your own story through comics
letsgokoyo
1
880
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
430
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
200
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
340
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
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..