TDD - Test Driven Development

1,653 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,653
On SlideShare
0
From Embeds
0
Number of Embeds
84
Actions
Shares
0
Downloads
29
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

TDD - Test Driven Development

  1. 1. TDD Test-Driven Development
  2. 2. Why is“testing”important? <ul><li>Prove your system behaviors meet the requirements / specifications
  3. 3. Give you confidence
  4. 4. Lead your project to success </li></ul>
  5. 5. Understand TDD <ul><li>Testing ≠ TDD
  6. 6. Repetition of short development cycle
  7. 7. Based-on specification
  8. 8. The goal is to write clean code that works
  9. 9. Tests are your first users </li></ul>
  10. 10. Perspectives around TDD <ul><li>Test Driven Development?
  11. 11. Test Oriented Development?
  12. 12. Test Driven Design?
  13. 13. Test Driven Development and Design? </li></ul>
  14. 14. Why TDD? <ul><li>Keeps you focus on required behavior
  15. 15. Improves quality (code design)
  16. 16. Provides and facilitates documentation
  17. 17. Being confident to change
  18. 18. Early identifies system defects
  19. 19. Comforts future maintenance </li></ul>
  20. 20. How to do TDD? <ul><li>TDD Tools
  21. 21. TDD Cycle
  22. 22. Choosing the first test </li></ul>
  23. 23. TDD Tools JSSpec Mosquito RSpec
  24. 24. TDD Cycle
  25. 25. Choosing the first test <ul><li>The simplest
  26. 26. The essense </li></ul><ul><li>If you need to write code that is untested, choose a simpler test .
  27. 27. If the essence approach takes to much time to implement, choose a simpler test . </li></ul>
  28. 28. Test should be <ul><li>Small and focused
  29. 29. Intention revealing
  30. 30. Repeatable
  31. 31. Independent
  32. 32. Have no side-effects </li></ul>
  33. 33. Demo
  34. 34. Resources <ul><li>http://en.wikipedia.org/wiki/Test-driven_development
  35. 35. http://www.agiledata.org/essays/tdd.html
  36. 36. http://www.amazon.com/exec/obidos/ISBN=0321146530
  37. 37. http://www.amazon.com/exec/obidos/ASIN/0131016490/ambysoftinc
  38. 38. http://www.slideshare.net/samnang.chhun/test-driven-development-2094018 </li></ul>
  39. 39. Thank You! Lim Chanmann Software Developer, InSTEDD iLab [email_address] lchanmann http://chanmannlim.wordpress.com

×