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: Doc strings

  1. Given a background step with a doc string
    From the background.

From the scenario

  1. Given a request body
    json
    {
      "quote": """""
    }

  1. Given a background step with a doc string
    From the background.

From the scenario

  1. Given a snippet
    markdown
    Code fences look like ``` in Markdown.

  1. Given a background step with a doc string
    From the background.

From the scenario

  1. Given uneven text
    indented as the delimiter
    indented less
        indented more

  1. Given a background step with a doc string
    From the background.

From the scenario

  1. Given text with blank lines
    
    between blank lines
    

  1. Given a background step with a doc string
    From the background.

From the scenario

  1. Given text with a tab and a hash
    one tab, as indentation
    	a tab after the indentation
    # A line like a comment, with """ in it, is content.
    x = 1 # and from a hash on any line, """ does not close it either

Note: in the Gherkin feature file, this scenario is

  1. Given a background step with a doc string
    From the background.

From the scenario

  1. Given a step in a rule
    text
    Inside the rule.

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.