Using Cucumber with Expertiza: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 19: Line 19:
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.
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.
===Features===
===Features===
In Expertiza, features are stored in /features. Within this folder you can find several sub-folders such as /admin, /instructor, and /student. This structure is to organize tests that apply to specific roles.
[[File:http://i.imgur.com/yxv2YVi.png]]
===Scenarios===
===Scenarios===
===Step Definitions===
===Step Definitions===


==Running Cucumber==
==Running Cucumber==

Revision as of 18:58, 8 February 2013

Cucumber Stack

Gherkin

Gherkin is the language used to write Cucumber executable feature specifications in conversational syntax. The syntax provides structure and meaning using special keywords including:

  • 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.

Features

In Expertiza, features are stored in /features. Within this folder you can find several sub-folders such as /admin, /instructor, and /student. This structure is to organize tests that apply to specific roles. File:Http://i.imgur.com/yxv2YVi.png

Scenarios

Step Definitions

Running Cucumber