私はキュウリでショッピングカートBDDを開発しています。カートはかなり複雑で、多くの鐘や笛がありますが、これは「ブログ」や「ユーザープロファイル」でも同様です。ガーキンとキュウリの特徴とは何ですか?
私はいつも機能する「カート」と考えられてきたとベル・アンド・ホイッスルはシナリオ年代します。しかし、これは大きいフィーチャーファイルを作ることができ、という文字通りの意味に反する。シナリオ。それはどのように見えるかです:
Feature: Cart
So that I can buy items
As a user
I want to place items in a cart
#.... Many more scenarios
Scenario: Empty a filled cart
Given 2 products in my cart
When I visit the cart page
And I press "Empty cart"
Then I should see the text:
"""
Your cart is empty.
"""
Scenario: Empty an empty cart
Given 0 products in my cart
When I visit the cart page
Then I should not see the "Empty cart" button
# Many more Scenario's
詳細が記入されると、この「空のカート」グループになります。私は "空の荷車"はスタンドアロンの機能と見なされるべきなのだろうか?これにより、フィーチャーが多数含まれていますが、すべてというシナリオが含まれます。 シナリオのは、「コンテキスト」のようになります。そのような:
Feature: Emptying Cart
So that I can reconsider my shopping-spree
As a user
I want to empty my cart
Scenario: with a filled cart
Given 2 products in my cart
When I visit the cart page
And I press "Empty cart"
Then I should see the text:
"""
Your cart is empty.
"""
Scenario: with an empty cart
Given 0 products in my cart
When I visit the cart page
Then I should not see the "Empty cart" button
機能何かを作るための適切なガイドラインとは何ですか?いつ再加入する必要がありますかシナリオは自分でフィーチャー?どのくらい多くシナリオのはフィーチャーによくありますか?