Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Test Driven Backbone Development

Test Driven Backbone Development

Trevor Landau

July 31, 2013
Tweet

Other Decks in Technology

Transcript

  1. TEST DRIVEN BACKBONE DEVELOPMENT
    Trevor Landau
    @trevor_landau
    1

    View full-size slide

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

    View full-size slide

  3. WHAT IS TDD?
    4

    View full-size slide

  4. WRITING A TEST
    8

    View full-size slide

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

    View full-size slide

  6. BEFORE/AFTER
    14

    View full-size slide

  7. Running the tests
    32

    View full-size slide

  8. CONTINUOUS INTEGRATION
    38

    View full-size slide

  9. WHAT NOT TO TEST
    39

    View full-size slide

  10. DISADVANTAGES
    40

    View full-size slide

  11. CAN I ALWAYS TDD?
    41

    View full-size slide

  12. BEYOND UNIT TESTING
    42

    View full-size slide

  13. QUESTIONS?
    43

    View full-size slide

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

    View full-size slide