Documentation vs test about cucumber but not only for vegetarians

32
Documentation vs Tests About tool Cucumber, but not only for vegetarians Michał Czyż

description

presentation perfor DRUG [19.04.2010]

Transcript of Documentation vs test about cucumber but not only for vegetarians

Page 1: Documentation vs test about cucumber but not only for vegetarians

Documentation vs

Tests

About tool Cucumber,but not only for vegetarians

Michał Czyż

Page 2: Documentation vs test about cucumber but not only for vegetarians

<me>

Page 3: Documentation vs test about cucumber but not only for vegetarians
Page 4: Documentation vs test about cucumber but not only for vegetarians

1910 scenarios

Page 5: Documentation vs test about cucumber but not only for vegetarians

@<estimation_number>

• @1 @2

●@3 @5

@8 @13

Page 6: Documentation vs test about cucumber but not only for vegetarians

@<initials>

@bk @mw @rj

Page 7: Documentation vs test about cucumber but not only for vegetarians

@m<number> @i<number>

Page 8: Documentation vs test about cucumber but not only for vegetarians

@_<status>

Page 9: Documentation vs test about cucumber but not only for vegetarians

@new, @removed, @skipped

Page 10: Documentation vs test about cucumber but not only for vegetarians

@__<place_id>::<component_id>

@__checkout__address_details

@__checkout__address_details::

address_look_up

@__checkout__confirmation

Page 11: Documentation vs test about cucumber but not only for vegetarians

@m1 @mc @__place_one::c_oneFeature: Sample feature

@i1 @2Scenario: sample scenario one

@i2 @1 @newScenario: sample scenario two

Page 12: Documentation vs test about cucumber but not only for vegetarians

#:::wireframe: http://some_url#:::page: place_one#:::component: c_one@m1 @mcFeature: Sample feature

#:::estimation: 2@i1Scenario: sample scenario one

Page 13: Documentation vs test about cucumber but not only for vegetarians
Page 14: Documentation vs test about cucumber but not only for vegetarians
Page 15: Documentation vs test about cucumber but not only for vegetarians
Page 16: Documentation vs test about cucumber but not only for vegetarians
Page 17: Documentation vs test about cucumber but not only for vegetarians

@m1 @_spec

@m1 @_todo,@_backlog @mc

@m1 ~@_done,@_qa,@_accepted

@m1, @m2, @m3 @new

Page 18: Documentation vs test about cucumber but not only for vegetarians
Page 19: Documentation vs test about cucumber but not only for vegetarians
Page 20: Documentation vs test about cucumber but not only for vegetarians

1) stories_<latest>

2) stories_<timestamp>

Synchronization (remote branches)

Page 21: Documentation vs test about cucumber but not only for vegetarians

Part of bigger ecosystem

Page 22: Documentation vs test about cucumber but not only for vegetarians
Page 23: Documentation vs test about cucumber but not only for vegetarians
Page 24: Documentation vs test about cucumber but not only for vegetarians
Page 25: Documentation vs test about cucumber but not only for vegetarians

include: - signed in user - registered userabout: represents the stakeholders and the businessgoals: - have control and overview of product building ...motiviations: - build great productpoints_of_pain: - delays in deliverytasks:...

./personas/product_owner.yml

Page 26: Documentation vs test about cucumber but not only for vegetarians

@__login::sign_upFeature: Sign up

In order to get access to protected sections of the siteAs a registered userI want to sign up

Scenario: Visitor signs up with invalid data ...

Scenario: Visitor signs up with valid data ...

Page 27: Documentation vs test about cucumber but not only for vegetarians
Page 28: Documentation vs test about cucumber but not only for vegetarians

feature "Homepage", %q{ To update requirement for project product owner should be able to change feature content} do scenario "should show past event if no upcoming" do title, description = "Beer chess", "Happy drinking" at_time 1.month.ago do @website.has(:event, :title => title, :description => description) end @user.visit(homepage) within "article.event" do @user.should_see(title, description) @user.should_see_translated("events.last_event") end end

Page 29: Documentation vs test about cucumber but not only for vegetarians

# To update requirement for project# product owner# should be able to change feature content## page: homepage## developer: ps

feature "Homepage", :milestone => '0.1' do

# Given one month ago event was entered # When user open homepage # Then she should see this event on top ## wireframe: http://justproto.com/....

scenario "should show past event if no upcoming",:iteration => 'one', :status => 'done' do

Page 30: Documentation vs test about cucumber but not only for vegetarians
Page 31: Documentation vs test about cucumber but not only for vegetarians

?

Page 32: Documentation vs test about cucumber but not only for vegetarians

Contact info:Mail [email protected] cs3b

Tools and usefull resources:https://github.com/aslakhellesoy/cucumber/wikihttps://github.com/cs3b/cucumber_fmhttp://demo.cucumber.fm/documentation/features

https://github.com/cavalle/steakhttps://github.com/cs3b/steak_fm

Source of steak example[28] https://github.com/drugpl/drug-site/blob/master/spec/acceptance/homepage_spec.rb

Font:http://www.fontsquirrel.com/fonts/TitilliumText

Pictures[3,6] http://www.selleo.com[9,10] selleo – Rafał Bromirski[14,15,17,18] http://demo.cucumber.fm[20] selleo – Rafał Bromirski[23] from redmine[24] http://www.dreamstime.com/royalty-free-stock-photos-happy-with-laptop-image6621668[26] http://www.dreamstime.com/royalty-free-stock-image-steaks-on-the-grill-image5835086