Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Meetup js 022115

569 views

Published on

Test Driven Development with a Javascript example

Published in: Software
  • Be the first to comment

  • Be the first to like this

Meetup js 022115

  1. 1. Test Driven Development Introduction – by Jon Means This is not about testing! Motivation Presentation outline
  2. 2. Qualifications
  3. 3. Red-Green-Refactor  Write a failing test  Write simplest code that gets the test to pass  Refactor to eliminate duplication
  4. 4. Benefits of TDD  Immediate feedback  Refactor with confidence  TDD leads to cleaner code
  5. 5. Case Study – Bad!
  6. 6. Case Study – Better!
  7. 7. Get qUnit  http://code.jquery.com/qunit/qunit-1.16.0.js  http://code.jquery.com/qunit/qunit-1.16.0.css
  8. 8. File Structure

×