Overview
Gherkin is a common English word with several distinct meanings. Most widely, it denotes a small cucumber prepared by pickling and used as a condiment or garnish. The same word is also the popular nickname for 30 St Mary Axe, a distinctive commercial skyscraper in the City of London. In technology circles, Gherkin refers to a simple, structured language used to express software behaviour in behaviour-driven development (BDD).
Pickled cucumber
As a food item, a gherkin is typically a small variety of cucumber preserved in brine, vinegar or another acidic solution. These pickles are valued for their crisp texture and tangy flavour and are commonly served with sandwiches, salads or as part of a relish. Regional names and recipes vary: French cornichon refers to a very small, tart pickle, while British and American usage often treats "gherkin" and "pickle" interchangeably. For more culinary context see gherkin (pickled cucumber).
30 St Mary Axe — "The Gherkin"
The nickname "The Gherkin" arose from the tower's cylindrical, tapering shape and patterned glass façade. Officially known by its postal address, the building is a prominent landmark in London's skyline and is noted for its modern architectural form and energy-saving design elements. It houses offices and public spaces and frequently appears in discussions of contemporary urban architecture.
Other uses and distinctions
Outside food and architecture, "Gherkin" is known in software development as the readable, domain-specific language used by tools such as Cucumber to write acceptance tests in plain language. The term thus spans culinary, cultural and technical contexts. When encountering the word, context (food, place, or software) determines which meaning applies.
Notable facts
- The culinary gherkin remains a staple of pickling traditions worldwide.
- The London nickname reflects popular shorthand for distinctive buildings.
- In BDD, Gherkin files describe features using a simple keyword structure to improve collaboration between technical and non-technical stakeholders.