Introduction to ATDD with Cucumber and RSpec

12,818 views

Published on

Cucumber と RSpec による ATDD 入門

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

No Downloads
Views
Total views
12,818
On SlideShare
0
From Embeds
0
Number of Embeds
2,713
Actions
Shares
0
Downloads
58
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide

Introduction to ATDD with Cucumber and RSpec

  1. Introduction to ATDD with Cucumber and RSpec Cucumber RSpec ATDD Kenta MurataMonday, September 26, 11 1
  2. Kenta Murata @mrkn CRuby committer bigdecimal maintainer OS X platform maintainer Interested in number system Ruby Sapporohttp://www.flickr.com/photos/recompile_net/5951998279/Monday, September 26, 11 2
  3. Monday, 12010 3 September 26, 11 3
  4. http://rubyconf.org/scheduleMonday, September 26, 11 4
  5. http://rubyconf.org/scheduleMonday, September 26, 11 4
  6. Introduction to ATDD with Cucumber and RSpec Cucumber RSpec ATDD Kenta MurataMonday, September 26, 11 5
  7. ATDD?Monday, September 26, 11 6
  8. Acceptance Test Driven DevelopmentMonday, September 26, 11 7
  9. Monday, September 26, 11 8
  10. “ The idea of using an automated customer Acceptance Test was first proposed in April 2000 by Kent Beck. Instead of a stakeholder handing over a requirements document to the developers without much opportunity for feedback, the developer and stakeholder collaborate together to write a test that the computer can run.Monday, September 26, 11 9
  11. “ 2000 4 Kent BeckMonday, September 26, 11 10
  12. “ 2000 4 Kent BeckMonday, September 26, 11 11
  13. “ 2000 4 Kent BeckMonday, September 26, 11 12
  14. “ 2000 4 Kent BeckMonday, September 26, 11 13
  15. “ 2000 4 Kent BeckMonday, September 26, 11 14
  16. http://pragprog.com/book/hwcuc/the-cucumber-bookMonday, September 26, 11 15
  17. “ The test fails at the time of writing, because no code has been written yet, but captures what the stakeholder cares about and gives everyone a clear signal as to what it will take to be done.Monday, September 26, 11 16
  18. “Monday, September 26, 11 17
  19. Unit tests v.s. Acceptance TestMonday, September 26, 11 18
  20. Unit testsMonday, September 26, 11 19
  21. Acceptance tests Feature (Usecase) ScenarioMonday, September 26, 11 20
  22. FeatureMonday, September 26, 11 21
  23. FeatureMonday, September 26, 11 22
  24. Monday, September 26, 11 23
  25. http://pragprog.com/book/hwcuc/the-cucumber-bookMonday, September 26, 11 24
  26. Cucumber Feature: Scenario: Given “ ” When “ ” Then And “ ”Monday, September 26, 11 25
  27. Given / “([^”]*)” / do |arg| ... end When / “([^”]*)” / do |arg| ... end Then / / do ... end Then / “([^”]*)” / do |arg| ... endMonday, September 26, 11 26
  28. Cucumber Feature ScenarioMonday, September 26, 11 27
  29. 1 red 2 3 red RSpec 4 refactor green 5 refactor green 6 7 CucumberThe RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  30. 1 red 2 3 red RSpec 4 refactor green 5 refactor green 6 7 CucumberThe RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  31. 1 red 2 3 red RSpec 4 refactor green 5 refactor green 6 7 CucumberThe RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  32. 1 red 2 (RSpec) 3 red RSpec 4 refactor green 5 refactor green 6 7 CucumberThe RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  33. 1 red 2 view spec (RSpec) 3 red RSpec 4 refactor green 5 refactor green 6 7 CucumberThe RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  34. 1 red 2 view spec (RSpec) 3 red view RSpec 4 refactor green 5 refactor green 6 7 CucumberThe RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  35. 1 red 2 view spec (RSpec) 3 red view RSpec 4 refactor green view 5 refactor green 6 7 CucumberThe RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  36. 1 red 2 view spec (RSpec) 3 red view RSpec 4 refactor green view 5 refactor green 6 7 Cucumber (cucumber)The RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  37. 1 red 2 view spec (RSpec) 3 red view RSpec 4 refactor green view 5 refactor green 6 7 Cucumber (cucumber)The RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  38. 1 red 2 view spec (RSpec) 3 red view RSpec 4 refactor green view 5 refactor green 6 7 Cucumber (cucumber)The RSpec Book, p.285 (start with Cucumber)Monday, September 26, 11 28
  39. DemonstrationMonday, September 26, 11 29
  40. http://tatsu-zine.com/books/cukeMonday, September 26, 11 30
  41. http://pragprog.com/book/achbd/the-rspec-bookMonday, September 26, 11 31
  42. http://pragprog.com/book/hwcuc/the-cucumber-bookMonday, September 26, 11 32
  43. http://pragprog.com/book/rcctr/continuous-testingMonday, September 26, 11 33
  44. http://pragprog.com/book/jgade/test-driven-development-for-embedded-cMonday, September 26, 11 34
  45. http://cuke4ninja.com/Monday, September 26, 11 35
  46. http://ssl.ohmsha.co.jp/cgi-bin/menu.cgi?ISBN=978-4-274-06856-0Monday, September 26, 11 36
  47. http://www.informit.com/store/product.aspx?isbn=0321503627Monday, September 26, 11 37
  48. http://www.informit.com/store/product.aspx?isbn=0321601912Monday, September 26, 11 38

×