Introduction to Test Driven Development

4,316 views

Published on

An introduction of Test Driven Development concepts, looking how an individual, a pair or a team can start looking at Test First Design practices.

Published in: Technology

Introduction to Test Driven Development

  1. 1. Test Driven Development October 2009 Daniel Wildt http://danielwildt.com
  2. 2. 1
  3. 3. http://agilemanifesto.org/
  4. 4. A possible focus looking at Agile Methodologies Strategy / Culture Lean Tactical / Procedures Scrum / eXtreme Programming Operational / eXtreme Programming Execution
  5. 5. Lean – 5 principles •Value • Value Stream Mapping • Continuous Flow • Pull Process • Perfection
  6. 6. Lean Software Development 1. Eliminate Waste 2. Amplify Knowledge 3. Build with quality 4. Defer decisions 5. Deliver Fast 6. Respect People 7. Continuous Improvement 8. Optimize the whole http://www.poppendieck.com/
  7. 7. Lean
  8. 8. http://www.xprogramming.com/xpmag/whatisxp.htm
  9. 9. 2
  10. 10. Expectations! ☺
  11. 11. Focus on fixing defects prevention! Zero Defect FOR FINAL USERS!
  12. 12. Learning Curve http://www.flickr.com/photos/pookhy/3522769044/
  13. 13. Testing, Testing, Testing http://www.ambysoft.com/essays/floot.html
  14. 14. Write a User Story As a <role / who?> I can <need/what?> So that <benefit / why?> With Acceptance Criteria (1+) Given that <input> When <action> Then <expected result> Acceptance Criterias will prepare your mind for testing
  15. 15. Prove ideas with CODE! Show results with Coverage Results! Regression test your code with test code!
  16. 16. Selenium IDE JUnit
  17. 17. Write a test that fails Make the test pass Refactor your code Do this cycle until you don’t have anything else to test.
  18. 18. More on User Stories http://xp123.com/xplor/xp0308/index.shtml More on Test driven development http://www.agiledata.org/essays/tdd.html Extra: Behavior Driven Development http://dannorth.net/introducing-bdd
  19. 19. Questions?

×