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
550
Tech Culture in Startups
alexbeletsky
0
160
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
250
Dynamic web development with Oak
alexbeletsky
1
570
Other Decks in Programming
See All in Programming
3 Effective Rules for Success with Signals in Angular
manfredsteyer
PRO
0
120
CSC307 Lecture 08
javiergs
PRO
0
330
Advanced App Shrinking Techniques
cbeyls
2
150
Prompt FlowによるLLMアプリケーション開発
yuto2000
1
1k
開発部に不満を持っていたCSがエンジニアにジョブチェンしてわかった「勝手に諦めない」ことの大切さ
sakuraikotone
28
16k
Harnessing Large Language Models for Training-free Video Anomaly Detection
tereka114
1
1.3k
Namespace on read
tagomoris
2
370
Microservices rules (July 2024) : what good looks like
cer
PRO
0
1.6k
DDDを志して3年経ったら「DDDの皮を被ったクリーンアーキテクチャ」になった話【デブサミ2024夏】
texmeijin
1
620
AWS初心者ってどうやってAWSを学ぶ?〜アプリエンジニアがやってよかったアーキテクチャ学習方法〜
yamanashi_ren01
0
190
Google's Recipe for Scaling (Web) Security – LocoMocoSec 2024
lweichselbaum
0
170
社内 LT 会を発足し、アウトプット文化を醸成させるために考えたこと・やったこと / Starting internal LT meetings and fostering an output culture
mackey0225
3
120
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
269
39k
Visualization
eitanlees
139
14k
Ruby is Unlike a Banana
tanoku
96
10k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
44
4.7k
Adopting Sorbet at Scale
ufuk
71
8.8k
Building Flexible Design Systems
yeseniaperezcruz
323
37k
Speed Design
sergeychernyshev
9
270
Into the Great Unknown - MozCon
thekraken
20
1.3k
[RailsConf 2023] Rails as a piece of cake
palkan
35
4.4k
Why Our Code Smells
bkeepers
PRO
332
56k
How GitHub Uses GitHub to Build GitHub
holman
471
290k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.8k
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..