Gherkin

1 program Added 2025-11-05T12:43:33Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 42a3be6769 · authored 2025-11-05T13:43:33+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

5 sources · pl_id: pl/gherkin
LLM (this repo) · 1PldbLinguistPygmentsHyperpolyglot

Extensions claimed by this language

3 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.featurelinguistprimary3.0M files
.featurepygmentsprimary3.0M files
.storylinguistsecondary1.0M files

Related languages

Simkin (0.21)Gremlin (0.20)Gren (0.15)Kuin (0.15)Spin (0.15)

LLM-contributed programs

Gherkin feature for testing data tables

Provenance: commit 42a3be6769 · authored 2025-11-05T13:43:33+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.feature · license: MIT · added: 2025-11-05T12:43:33Z
Feature: data tables

  Scenario: passing a data table to a step
    Given a step with a data table:
      | a | b |
      | c | d |
      | e | f |
    When I run the feature
    Then the step passes
    And the step definition has a data table with the following rows:
      | a | b |
      | c | d |
      | e | f |
    And the step definition has a data table with the following hashes:
      | a | b |
      | c | d |
      | e | f |
    And the step definition has a data table with the following raw rows:
      | a | b |
      | c | d |
      | e | f |

  Scenario: passing a data table to a step with a doc string
    Given a step with a doc string and a data table:
      """
      doc string
      """
      | a | b |
      | c | d |
    When I run the feature
    Then the step passes
    And the step definition has a doc string "doc string"
    And the step definition has a data table with the following rows:
      | a | b |
      | c | d |

  Scenario: data table with special characters
    Given a step with a data table:
      | \ | |
      | | \ |
    When I run the feature
    Then the step passes
    And the step definition has a data table with the following rows:
      | \ | |
      | | \ |

  Scenario: data table with escaped pipe
    Given a step with a data table:
      | a \| b |
    When I run the feature
    Then the step passes
    And the step definition has a data table with the following rows:
      | a \| b |

  Scenario: data table with escaped backslash
    Given a step with a data table:
      | a \\ b |
    When I run the feature
    Then the step passes
    And the step definition has a data table with the following rows:
      | a \\ b |

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
escaped_pipes.feature · 341 B · ext .feature · seen 362× in SWH
via unique-primary
swh:1:cnt:489a145d709f64fdb46b9490a92e354c3a45b3bc;origin=https://github.com/ducminh-phan/reformat-gherkin;anchor=swh:1:rev:342e4203b8682cf49a6b65d9e74464b73954c896;path=/tests/gherkin_test_data/escaped_pipes.feature
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
Feature: Escaped pipes
    The \-character will be considered as an escape in table cell
    iff it is followed by a |-character, a \-character or an n.

  Scenario: They are the future
    Given they have arrived
      | æ | o |
      | a | ø |
    Given they have arrived
      | \|æ\\n     | \o\no\  |
      | \\\|a\\\\n | ø\\\nø\\|

Contribute — propose a file extension

Tell us where to find evidence about Gherkin (mapped to pl/gherkin). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Gherkin/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← GHC ghidra-decompiler →