Cucumber
Cucumber (https://cucumber.io/) is testing framework aimed to automate acceptance tests written following a Behavior-Driven Development (BDD) style. Cucumber has been written in Ruby, although implementations for other languages (including Java, JavaScript, and Python) are available.
Cucumber in a nutshell
Cucumber executes tests specified written in language called Gherkin. It is a plaint-text natural language (for example, English or one of other 60+ languages supported by Cucumber) with a given structure. Gherkin has been designed to be used by non-programmers, typically customers, business analysis, managers, and so on.
Note
The extension for Gherkin files is .feature
.
In a Gherkin file, non-blank lines can start with a keyword, followed by text in natural language. The main keywords are the following:
- Feature: High-level description of the software feature to be tested. It can be seen as a use case description.
- Scenario: Concrete example that illustrates a business rule. Scenarios...