Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Test Driven Backbone Development
Trevor Landau
July 31, 2013
Technology
11
1.8k
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
clustervr
0
200
natsusan
0
200
con_mame
4
2k
ymas0315
0
180
harshbothra
0
130
saoritakita
0
350
takuros
3
540
viva_tweet_x
5
2.7k
hirosys
0
140
sky_joker
0
120
y0hgi
1
400
clustervr
0
200
Featured
See All Featured
scottboms
251
11k
addyosmani
494
110k
jasonvnalue
82
8.1k
shpigford
368
42k
rocio
155
11k
jonyablonski
14
1.1k
pauljervisheath
196
15k
searls
204
35k
morganepeng
92
14k
addyosmani
1348
190k
jacobian
255
20k
moore
125
21k
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