Bdd cu RSpec si Cucumber

  • 1,353 views
Uploaded on

Introduction to BDD with Cucumber, RSpec and Rails. …

Introduction to BDD with Cucumber, RSpec and Rails.

Slides are in Romanian.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,353
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
10
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

































Transcript

  • 1. Cluj.rb BDD cu RSpec si Cucumber
  • 2. Cluj.rb Comunitatea programatorilor Ruby din Cluj-Napoca
  • 3. Cluj(:?.rb)? Comunitatea programatorilor din Cluj-Napoca
  • 4. Cluj(:?.rb)? • Prezentari - centrate pe Ruby - Ruby - Ruby on Rails, Merb, Sinatra, Camping - HAML, SASS, Compass - Test/Unit, RSpec, Cucumber, Shoulda, Mocha - Capistrano, Chef, God - Git, Vim, Emacs, TextMate, RubyMine, Netbeans
  • 5. Cluj(:?.rb)? • Prezentari - comune - jQuery, Closure (Google), SproutCore - CSS: Blueprint, YUI - Canvas, WebSockets, WebWorkers, Client-side storage, Geolocation - MySQL, MongoDB, CouchDB, Cassandra
  • 6. Cluj(:?.rb)? • Prezentari - alte tehnologii - Java - .NET - PHP - Python
  • 7. Cluj(:?.rb)? • Prezentari - Cereri - Propuneri - Noi alegem - Fallback
  • 8. Coding Dojo
  • 9. Coding Dojo • Scop: - îmbunătățirea continuă a skillurilor de programare • Caracteristici: - colaborativ, ne-competitiv - pentru orice nivel - incercare de idei noi
  • 10. Coding Dojo • Proces: - 2 min: decidem timpul pentru următoarea întâlnire; - 25-30 min: retrospectiva sesiunii trecute - ce a fost interesant, ce a fost frustrant; - 10 min: alegerea subiectului pentru sesiunea curentă; - 40 min: programare; - 5-10 min: pauza pentru a discuta cum merg lucrurile; - 40 min: programare.
  • 11. Coding Dojo • PreparedKata: - Un prezentator rezolvă o problemă pregătită - Întrebări pentru clarificare • RandoriKata: - Problema rezolvată de perechi (driver-copilot) - Toată lumea poate participa - 5-7 minute timp pentru fiecare pereche - Copilotul devine driver, cineva din public devine copilot
  • 12. Cluj.rb • http://meetup.com/cluj-rb • Twitter.com - @clujrb, #clujrb • http://github.com/clujrb • Site • Video
  • 13. BDD cu RSpec si Cucumber
  • 14. BDD • Behavior Driven • Design
  • 15. Concepte BDD • Beneficiar • Feature • Story • “De ce?” • Red-Green-Refactor
  • 16. Cucumber • Descrieri funcționale • Features: plain text • Execuție: Ruby, Java, C#, Python etc. • Testare automată sau BDD
  • 17. Cucumber features
  • 18. Cucumber steps
  • 19. Cucumber
  • 20. calculator.rb
  • 21. Cucumber
  • 22. Steps
  • 23. Calculator
  • 24. Cucumber
  • 25. Cucumber So what?
  • 26. Cucumber • Capybara - web steps • Selenium Webdriver - browser steps • Email spec - email steps
  • 27. account.feature
  • 28. RSpec • Evolutie de la Test/Unit • TDD => BDD • Sytanctic sugar
  • 29. calculator_spec.rb
  • 30. describe, context, it
  • 31. Rails + Cucumber + RSpec (threesome?)
  • 32. Rails + Cucumber + RSpec Capybara Database Cleaner Pickle Remarkable Rails Email Spec FactoryGirl Selenium
  • 33. Demo