Cucumber @ VilniusPHP

1,204 views
1,149 views

Published on

Presented in VilniusPHP event on 2014-02-06.

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

  • Be the first to like this

No Downloads
Views
Total views
1,204
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cucumber @ VilniusPHP

  1. 1. Cucumber Intro į integracinį testavimą. Salotoms. Vidmantas Kabošis @ VilniusPHP, 2014-02-06
  2. 2. Integracinis testavimas Unit testing (TDD / BDD*)
  3. 3. Integracinis testavimas Unit testing (TDD / BDD*) Integration (Acceptance) testing
  4. 4. Integracinis testavimas ● ● ● ● ● ● Programavimo kalba (PHP, Ruby, Java, …) Duomenų bazė(s) HTML, CSS Javascript Kešavimas (redis, memcached, …) Paieškos varikliai (elastic, solr, …)
  5. 5. Funkciniai reikalavimai Tai yra visada istorijos (user story): Žodžiu, kai aš paspaudžiu ant “Išsaugoti” Turi iššokti langas, kur galiu įvesti pavadinimą Tada paspaudžiu “Gerai” Ir man tą nuotraukikę rodo albume
  6. 6. Meet the
  7. 7. Žingsniai Given any uploaded picture When I press the “Save” button Then the window should pop up And I should be able to enter the name When I press “OK” Then I should see my picture in the gallery
  8. 8. Scenarijai Scenario: save with default name Given any uploaded picture When I press the “Save” button ...
  9. 9. Funkcijos (feature) Feature: gallery Scenario: save with default name Given any uploaded picture When I press the “Save” button ...
  10. 10. Gherkin When(/(I ?)press the “(.+)” button$/) do |name| wait_for_page_to_load click_button(name) end
  11. 11. Hands on!
  12. 12. FAQ ● Kada naudoti? ● Kada nenaudoti? ● Kuo tai geriau nei “įprastas”, gerai struktūrizuotas testavimo kodas? ● Ar tai greita? (rašymo prasme) ● Ar tai greita? (vykdymo prasme)
  13. 13. PHP pasaulyje ● Cucumber (surprise) ● Behat ● cuke4php
  14. 14. VilniusRB Kovo 1 d. 14:00 Intro to Ruby/Rails for developers Registracija: www.vilniusrb.lt
  15. 15. Javascript developer! bit.ly/enlarge-your-js Such workplace So javascript Very table tennis So conference Much 10% Very team Wow computer Much code Such salary
  16. 16. Klausimai? @vidmantas / vidmantas@kabosis.lt

×