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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Alexander Beletsky
July 15, 2014
Programming
860
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
710
Tech Culture in Startups
alexbeletsky
0
250
This is Node.js
alexbeletsky
10
470
Likeastore
alexbeletsky
3
170
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
340
Dynamic web development with Oak
alexbeletsky
1
650
Other Decks in Programming
See All in Programming
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
13
3.5k
AI時代のUIはどこへ行く?その2!
yusukebe
19
6.7k
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
4.3k
The NotImplementedError Problem in Ruby
koic
1
610
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
210
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
460
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
440
さぁV100、メモリをお食べ・・・
nilpe
0
130
dRuby over BLE
makicamel
2
320
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
270
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
1.7k
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
130
Featured
See All Featured
Making Projects Easy
brettharned
120
6.7k
Unsuck your backbone
ammeep
672
58k
BBQ
matthewcrist
89
10k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.9k
Are puppies a ranking factor?
jonoalderson
1
3.5k
Context Engineering - Making Every Token Count
addyosmani
9
940
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
310
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
480
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
55k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
170
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
How STYLIGHT went responsive
nonsquared
100
6.2k
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..