Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Test Driven Backbone Development
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Trevor Landau
July 31, 2013
Technology
2.4k
11
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Test Driven Backbone Development
Backbone 2013 Talk
http://github.com/landau/tddbackbone
Trevor Landau
July 31, 2013
Transcript
44 slides
TEST DRIVEN BACKBONE DEVELOPMENT Trevor Landau @trevor_landau 1
SO.......... 2
WUT?! 3
WHAT IS TDD? 4
WORKFLOW 5
WHY TDD? 6
HOW TO TDD 7
WRITING A TEST 8
function assert(bool, errStr) { if (!bool) throw new Error(errStr); }
9
10
11
12
13
BEFORE/AFTER 14
15
16
IT 17
18
19
20
21
SINON.JS 22
SPYS 23
24
25
STUBS 26
27
28
29
MOCKS 30
31
Running the tests 32
33
34
35
36
37
CONTINUOUS INTEGRATION 38
WHAT NOT TO TEST 39
DISADVANTAGES 40
CAN I ALWAYS TDD? 41
BEYOND UNIT TESTING 42
QUESTIONS? 43
THANK YOU https://github.com/landau/tddbackbone http://visionmedia.github.io/mocha/ http://sinonjs.org/ http://chaijs.com/ http://gruntjs.com http://jenkins-ci.org/ https://travis-ci.org/ @trevor_landau
44
Other Decks in Technology
See All in Technology
DBTS2026 盛り上がってますか!?Databricksが実現するAI時代のデータ基盤
akuwano
1
200
SSFの現在地 ― CAEP/RISCからAI Identityへ
oidfj
0
430
AWSを利用する上で知っておきたい名前解決の話 2026
nagisa53
5
3.6k
仕様と現実の間で落とし所を探るリモートMCPの認証・認可 — Sansanの認証基盤における課題と実践
sansantech
PRO
2
290
Bots in Kiro Crew (One point of contact for ongoing work) | Kiro: Zero to Hero 12
inariku
PRO
1
130
契約書SaaSにAIエージェントを組み込む
sansantech
PRO
0
100
ライフワーク「猫でもわかるDirectConnect」
kentapapa
0
330
マネジメントされる側の仕事は「文句」を言うこと
riyaamemiya
2
690
大江戸Ruby会議でデータベース クライアントの話をするのは 間違っているだろうか
yahonda
1
120
田んぼから始まる挑戦 〜新米農家の1年目〜
miu_crescent
PRO
0
290
The Author Pays
hiccupps
0
200
アラートを見直していたら営業組織への理解にちょっとだけ繋がった話
z63d
1
190
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
4
570
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
670
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
610
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.7k
Building an army of robots
kneath
307
47k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
470
Paper Plane (Part 1)
katiecoart
PRO
3
12k
Designing for Performance
lara
612
70k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
560