D Is For Driven

2,429 views
2,343 views

Published on

0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,429
On SlideShare
0
From Embeds
0
Number of Embeds
66
Actions
Shares
0
Downloads
23
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

D Is For Driven

  1. 1. • • • • • •
  2. 2. • http://seshop.com/event/dev/2007/
  3. 3. http://groups.yahoo.com/group/extremeprogramming/message/113518
  4. 4. Clean code that works, in Ron Jeffries’ pithy phrase, is the goal of Test-Driven Development(TDD).
  5. 5. “Clean code that works”
  6. 6. ,-* ed Refactor R +* Green (#%&')!()* !quot;#$ Seasar Conference 15 2006 Autumn © The Seasar Foundation and the others 2006. all rights reserved.
  7. 7. “The translation of a feeling into a test is a common theme of TDD.”
  8. 8. ,-* ed Refactor R +* Green (#%&')!()* !quot;#$ Seasar Conference 15 2006 Autumn © The Seasar Foundation and the others 2006. all rights reserved.
  9. 9. http://tech.groups.yahoo.com/group/extremeprogramming/message/113575
  10. 10. • • •
  11. 11. • • • •
  12. 12. 2006: a testing odyssey
  13. 13. 1971
  14. 14. 1992
  15. 15. http://www.biwa.ne.jp/~mmura/SoftwareDevelopment/WhatIsSoftwareDesignJ.html
  16. 16. 1998
  17. 17. http://www.objectclub.jp/community/XP-jp/xp_relate/testinfected-j
  18. 18. 1999
  19. 19. 2000
  20. 20. WEB+DB PRESS Vol.35 t-wada
  21. 21. 2002
  22. 22. 2003
  23. 23. 2004
  24. 24. • http://blogs.itmedia.co.jp/hiranabe/2005/10/ tdd__bdd__731d.html
  25. 25. 2005
  26. 26. http://giantech.jp/wiki/BDDIntro
  27. 27. class EmptyMovieList < Spec::Context def setup @list = MovieList.new end def should_have_size_of_0 @list.size.should_equal 0 end def should_not_include_star_wars @list.should_not_include quot;Star Warsquot; end end class OneMovieList < Spec::Context def setup ... def should_have_size_of_1 ... end
  28. 28. 2006
  29. 29. http://www.dannorth.net/introducing-bdd
  30. 30. http://behaviour-driven.org/
  31. 31. http://behaviour-driven.org/
  32. 32. 25
  33. 33. Sapir–Whorf hypothesis
  34. 34. calc_spec.rb: context quot;1+1 quot; do setup do @sum = 1 + 1 end specify quot; 2 quot; do @sum.should_eql 2 end expectation end context quot; quot; do specify quot;2-0 0 quot; do (2 - 0).should_eql 0 end end
  35. 35. rspec.rubyforge.org
  36. 36. context “5 ” do setup do @five_dollar = Money.doller(5) end specify “2 10 ” do (@five_doller * 2).should_eql Money.doller(10) end specify “5 ” do @five_doller.should_not_eql 5 end ... end ...
  37. 37. • • • •
  38. 38. Smalltalk
  39. 39. Do you have any questions?

×