Test Driven Backbone Development

Test Driven Backbone Development

22333cdd0184011094ba9498ba2fd73f?s=128

Trevor Landau

July 31, 2013
Tweet

Transcript

  1. TEST DRIVEN BACKBONE DEVELOPMENT Trevor Landau @trevor_landau 1

  2. SO.......... 2

  3. WUT?! 3

  4. WHAT IS TDD? 4

  5. WORKFLOW 5

  6. WHY TDD? 6

  7. HOW TO TDD 7

  8. WRITING A TEST 8

  9. function assert(bool, errStr) { if (!bool) throw new Error(errStr); }

    9
  10. 10

  11. 11

  12. 12

  13. 13

  14. BEFORE/AFTER 14

  15. 15

  16. 16

  17. IT 17

  18. 18

  19. 19

  20. 20

  21. 21

  22. SINON.JS 22

  23. SPYS 23

  24. 24

  25. 25

  26. STUBS 26

  27. 27

  28. 28

  29. 29

  30. MOCKS 30

  31. 31

  32. Running the tests 32

  33. 33

  34. 34

  35. 35

  36. 36

  37. 37

  38. CONTINUOUS INTEGRATION 38

  39. WHAT NOT TO TEST 39

  40. DISADVANTAGES 40

  41. CAN I ALWAYS TDD? 41

  42. BEYOND UNIT TESTING 42

  43. QUESTIONS? 43

  44. 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