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
520
Tech Culture in Startups
alexbeletsky
0
150
This is Node.js
alexbeletsky
10
370
Likeastore
alexbeletsky
3
120
PaaS in your pocker with Dokku
alexbeletsky
7
2.3k
Building Single Page Applications
alexbeletsky
9
5.2k
.NET developer in JavaScript world
alexbeletsky
1
2.6k
How to write good tests?
alexbeletsky
2
250
Dynamic web development with Oak
alexbeletsky
1
570
Other Decks in Programming
See All in Programming
Ruby Function Composition
bkuhlmann
1
330
Netty Chicago Java User Group 2024-04-17
sullis
0
110
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
180
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
250
Ruby GitHub Packages
bkuhlmann
0
620
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
460
try! Swift Tokyo 初参加報告LT
hinakko2
0
190
今の SmartHR にエンジニアで入社するとどうなるの?
daisukeshinoku
5
4.6k
Front-end application development, Symfony-style(s)
dunglas
2
1.9k
元気予報
suu_mire0726
0
850
[技育CAMPアカデミア]アイディアを形に!【超入門】スマホアプリ開発〜リリースまでの流れをご紹介
teamlab
PRO
0
340
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
250
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
227
130k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.3k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Documentation Writing (for coders)
carmenintech
59
3.9k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Six Lessons from altMBA
skipperchong
20
3k
The Invisible Customer
myddelton
114
12k
Making Projects Easy
brettharned
108
5.5k
Automating Front-end Workflow
addyosmani
1355
200k
Agile that works and the tools we love
rasmusluckow
324
20k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
13
1.5k
A Modern Web Designer's Workflow
chriscoyier
689
190k
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..