Opened from disk

This site is meant to be served, so its folder tree and search do not work when a page is opened from disk. Run ghg serve in the folder of your ghg.toml, or serve the site's folder with any web server, then open the address it gives.

Skip to content
Theme

Feature: Every construct

A description of the feature,
over two lines.

A description of the scenario.

  1. Given a customer named "Ana"

From the scenario

  1. Given an order with these lines:
    itemprice
    pen1.50
    a | b2
  2. When the order is placed
  3. Then a receipt is sent
  4. And no error is shown
  5. But nothing is charged twice
  6. * the order is saved

  1. Given a customer named "Ana"

From the scenario

  1. Given <count> items
  2. Then the total is <total>

Runs once for each row of these examples:

The rule's description.

Note: in the Gherkin feature file, this scenario is

  1. Given a customer named "Ana"

  1. Given the rule applies

From the scenario

  1. Given a step with a doc string
    Some text.

About this note

Gherkin lets authors use different words for the same kind of block. For example, Scenario and Example both define a scenario, and Examples and Scenarios both define examples. This site names every block by its kind, so pages read the same whichever word was used. The note only tells you which word the feature file uses; it changes nothing about the block.