Using Cucumber with Expertiza: Difference between revisions
Jump to navigation
Jump to search
m (→Gherkin) |
|||
Line 2: | Line 2: | ||
===Gherkin=== | ===Gherkin=== | ||
Gherkin is the language used to write Cucumber executable feature specifications in conversational syntax. | Gherkin is the language used to write Cucumber executable feature specifications in conversational syntax. | ||
A Gherkin file is given its structure and meaning using a set of special keywords. | |||
These include: | |||
* Feature | |||
* Background | |||
* Scenario | |||
* Given | |||
* When | |||
* Then | |||
* And | |||
* But | |||
* Scenario Outline | |||
* Examples | |||
===Capybara=== | ===Capybara=== |
Revision as of 00:20, 8 February 2013
Cucumber Stack
Gherkin
Gherkin is the language used to write Cucumber executable feature specifications in conversational syntax.
A Gherkin file is given its structure and meaning using a set of special keywords. These include:
- Feature
- Background
- Scenario
- Given
- When
- Then
- And
- But
- Scenario Outline
- Examples
Capybara
Behavior Driven Development
The BDD paradigm is that it's better to write code you wish you had and have a feature that is working instead of writing something you’re not sure is right and writing tests around it.