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
Test Driven Backbone Development
Search
Trevor Landau
July 31, 2013
Technology
11
2.3k
Test Driven Backbone Development
Backbone 2013 Talk
http://github.com/landau/tddbackbone
Trevor Landau
July 31, 2013
Tweet
Share
Other Decks in Technology
See All in Technology
AIで急増した生産「量」の荒波をCodeRabbitで乗りこなそう
moongift
PRO
0
570
The Twin Mandate of Observability
charity
1
480
開発者が知っておきたい複雑さの正体/where-the-complexity-comes-from
hanhan1978
3
570
SREのキャリアから経営に近づく - Enterprise Risk Managementを基に -
shonansurvivors
1
740
日本のソブリンAIを支えるエヌビディアの生成AIエコシステム
acceleratedmu3n
0
130
どうなる Remix 3
tanakahisateru
0
250
AI連携の新常識! 話題のMCPをはじめて学ぶ!
makoakiba
0
180
CloudComposerによる大規模ETL 「制御と実行の分離」の実践
leveragestech
0
190
Mackerelにおけるインシデント対応とポストモーテム - 現場での工夫と学び
taxin
0
110
Design and implementation of "Markdown to Google Slides" / phpconfuk 2025
k1low
1
180
AIとの協業で実現!レガシーコードをKotlinらしく生まれ変わらせる実践ガイド
zozotech
PRO
2
340
NOT A HOTEL SOFTWARE DECK (2025/11/06)
notahotel
0
3.2k
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
9
650
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
A Tale of Four Properties
chriscoyier
161
23k
Gamification - CAS2011
davidbonilla
81
5.5k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
10
910
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
658
61k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6k
How to Ace a Technical Interview
jacobian
280
24k
Transcript
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