Topic: Gherkin keyword and defenition [personal]
A forum for Ruby on Rails users
You are not logged in. Please login or register.
cucumber filename.feature --dry-run
The --dry-run switch tells Cucumber to parse the file without executing it. It
will tell you if your Gherkin isn’t valid.
Each Gherkin file begins with the Feature keyword. This keyword doesn’t really affect the behavior of your Cucumber tests at all; it just gives you a convenient place to put some summary documentation about the group of tests that follow.
Feature must be followed by one of the following:
• Scenario Outline
Last edited by moiseszaragoza (2012-05-25 12:31:25)
all follow the same pattern:
1. Get the system into a particular state.
2. Poke it (or tickle it, or ...).
3. Examine the new state.
Scenario: Successful withdrawal from an account in credit
Given I have $100 in my account # the context
When I request $20 # the event(s)
Then $20 should be dispensed # the outcome(s)
A background section in a feature file allows you to specify a set of steps that are common to every scenario in the file.
Hosting provided by aTech Media