Closed tansaku closed 7 years ago
arreche nash [11:56 AM]
So this story
Scenario: Should respond with hello
Given a bot
When I say 'hello'
Then the bot respond back 'hello yourself'
[11:57]
Would be rewrite to
Scenario: Should respond when it is alive
Given a bot
When I ping it
Then it respond back
[11:57]
right?
Sam Joseph [12:00 PM]
well I think the key thing I'd like to see is the feature have the three components, e.g.
As an admin
So that I can avoid more complex tests
I would like a simple mechanism to check the bot is responding
Scenario: Should respond with hello
Given a bot
When I say 'hello'
Then the bot respond back 'hello yourself'
(edited)
[12:01]
I think the scenario is okay how it is - short ones can be imperative, particularly if it makes the operation of the system clear
I think the key addition now is the full feature user stories at the top of each cuke, and a gradual polishing to more declarative cukes:
http://itsadeliverything.com/declarative-vs-imperative-gherkin-scenarios-for-cucumber
also pulling in a bigger set of other stories