• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Behavior Driven Development, Ruby Style
 

Behavior Driven Development, Ruby Style

on

  • 954 views

 

Statistics

Views

Total Views
954
Views on SlideShare
946
Embed Views
8

Actions

Likes
0
Downloads
7
Comments
0

2 Embeds 8

http://a0.twimg.com 7
http://www.hanrss.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Behavior Driven Development, Ruby Style Behavior Driven Development, Ruby Style Presentation Transcript

    • Behaviour-Driven Development ft. Ruby, Cucumber & RSpec
    • Видове тестванеОбласти за проверка Начини за проверкаProcess Doc ReviewsFunctional ManualSecurity AutomatedPerformance SamplingStress/Load Test DrivenUsability Behavior DrivenGlob/Loc
    • Tестове Ръчни АвтоматизираниКвалификация Средна Висока Удоволствие   Мащаб 0 ∞ Цена $$$$$ $$$
    • Цена на дефектите
    • Agile и автоматизацията Add test WatchRefactor Test Fail Run Write Tests Code
    • I love the term diversity. Di-ver-si-ty.Doesn’t that sound great?
    • Testing Frameworks за Ruby Cucumber RSpecTest::Minitest Shoulda Test::Unit Steak
    • Cucumber RSpec
    • Първи идват feature тестовете
    • features online_shopping.feature
    • $ rake cucumberFeature: Online shopping In order to use the full capabilities of our online shop A user Should be able to make an order Scenario: Buying a beer # features/online_shopping.feature:6 Given that there are 5 beers on stock When Vasko buys 2 beers Then there should be 3 beers left1 scenario (1 undefined)3 steps (3 undefined)0m0.003s
    • features step_definitions shopping_steps.rb
    • Feature: Online shopping In order to use the full capabilities of our online shop A user Should be able to make an order Scenario: Buying a beer # features/online_shopping.feature:6 Given that there are 5 beers on stock uninitialized constant Beer (NameError) ./features/step_definitions/online_shopping_steps.rb:5: in `/^that there are (d+) beers on stock$/‘ When Vasko buys 2 beers Then there should be 3 beers leftFailing Scenarios:cucumber features/online_shopping.feature:6 # Scenario: Buying a beer1 scenario (1 failed)3 steps (1 failed, 2 skipped)0m0.469s
    • $ rake cucumberFeature: Online shopping In order to use the full capabilities of our online shop A user Should be able to make an order Scenario: Buying a beer # features/online_shopping.feature:6 Given that there are 5 beers on stock When Vasko buys 2 beers Then there should be 3 beers left1 scenario (1 passed)3 steps (3 passed)0m0.003s
    • Gherkin Над 40 езика$ cucumber --i18n help| ar | Arabic | ‫|العربية‬| bg Bulgarian | български || ca | Catalan | català || cs | Czech | Česky || cy-GB | Welsh | Cymraeg || da | Danish | dansk || de | German | Deutsch || en | English | English || en-Scouse | Scouse | Scouse || en-au | Australian | Australian | … … …
    • $ rake cucumber# language: bgФункционалност: Пазаруване онлайн За да използват пълните възможности на нашия онлайн магазин Потребителите Трябва да могат да правят поръчки Сценарий: Купуване на бира # features/online_shopping.feature:10 Дадено е, че има налични 5 бири Когато Васко купи 2 бири То трябва да останат 3 бири1 scenario (1 passed)3 steps (3 passed)0m0.003s
    • Къде саunit tests?спецификации
    • Test
    • Spec
    • Test vs. Spec
    • Test vs. Spec
    • Test vs. Spec
    • Test vs. Spec
    • Cucumber + RSpec – задвижванена реализацията отвън - навътре Feature Spec Code Refactor
    • WHO BROKETHE BUILD?
    • Guard Bundle update Bundle already up-to-date RSpec results 197 examples, 0 failures (15 pending) in 12.274 seconds Cucumber Results 13 passed steps
    • Spork Spork Rspec & Cucumber successfully started
    • Jenkins
    • ВЪПРОСИ?
    • Ресурси• Десетте най-големи софтуерни грешки: http://themanojblog.blogspot.com/2009/05/ blog-wars-episode-v-historys-top-ten.html• Тестване на софтуер: http://en.wikipedia.org/wiki/Software_testing• Допълнитени ресурси: http://www.softwaretestinghelp.com
    • Ресурси• Cucumber: http://cukes.info• RSpec: http://rspec.info• Guard: https://github.com/guard/guard• Spork: https://github.com/sporkrb/spork• Jenkins: http://jenkins-ci.org/
    • Контакти• Георги Кременлиев: – george@empowerunited.com – @gssgek• Цветомила Михайлова: – tsvetomila@empowerunited.com – @tsvetomila
    • БЛАГОДАРИМ ВИ!