All glossary terms
Verify

Gherkin

Gherkin is a structured plain-English DSL for writing executable acceptance tests, using the Given / When / Then format. It originated with Cucumber and is now used across BDD frameworks (SpecFlow, Behat, pytest-bdd). Gherkin is readable by non-developers but parsable by test runners.

A typical Gherkin scenario reads: 'Given I am viewing the project board / When I select 5 issues and click Archive / Then the issues disappear and an undo toast appears.' The format's strength is bridging product and engineering: PMs can write or review the scenarios, engineers can execute them. Anti-patterns: leaking implementation into the steps (mentions of databases, services, or APIs), or writing scenarios so detailed they become test scripts rather than behaviour specifications.

Related terms