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.2k
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
Discovering AI Models
picardparis
4
3.9k
リアルお遍路+SORACOM IoT
ozk009
1
140
「認証認可」という体験をデザインする ~Nekko Cloud認証認可基盤計画
logica0419
2
430
エンジニア視点で見る、 組織で運用されるデザインシステムにするには
shunya078
1
310
DevRelの始め方
moongift
PRO
1
390
プログラム検証入門
riru
6
870
Functional TypeScript
naoya
11
4.8k
なぜクラウドサービスで Web コンソールを提供するのか
shuta13
4
2k
watsonx.ai Dojo 環境準備について
oniak3ibm
PRO
0
260
App Router を実プロダクトで採用して見えてきた勘所をちょっとだけ紹介
marokanatani
1
930
可視化により内部品質をあげるAIドキュメントリバース/20240910 Hiromitsu Akiba
shift_evolve
0
220
GC24 Recap: Interface Internals
task4233
0
110
Featured
See All Featured
Fontdeck: Realign not Redesign
paulrobertlloyd
80
5.1k
How to name files
jennybc
75
98k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
28
1.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
322
23k
Producing Creativity
orderedlist
PRO
340
39k
Building an army of robots
kneath
302
42k
The World Runs on Bad Software
bkeepers
PRO
64
11k
How STYLIGHT went responsive
nonsquared
93
5.1k
GitHub's CSS Performance
jonrohan
1030
450k
Designing the Hi-DPI Web
ddemaree
278
34k
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
Atom: Resistance is Futile
akmur
261
25k
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