Cucumber supports behaviour-driven development by running plain-text executable specifications. It checks that software behavior matches scenarios written in the Gherkin language.
Overview
Cucumber reads scenarios made of steps in Gherkin and reports success or failure for each example. Scenarios group Given, When, and Then steps that describe expected interactions with the system under test, producing human-readable output alongside pass and fail markers.
Gherkin provides grammar rules that structure natural language specifications. Feature files stored in source control document how the system should behave and can drive automated tests. Keyword sets exist for many spoken languages so teams can author specs in their preferred language.
Step definitions connect each Gherkin step to code in supported programming languages, wiring the specification to the implementation. The wider Cucumber ecosystem also includes shared libraries for parsing Gherkin, matching step patterns, tag expressions, and message protocols used across language ports.
The tooling is oriented toward collaboration and discovery in BDD rather than replacing unit tests alone: examples remain versioned artifacts that both humans and runners can interpret.
Key features
- Gherkin scenario syntax
- Executable plain-text specs
- Multi-language step definitions
- Per-scenario pass fail reports
- Localized Gherkin keywords
- Feature file versioning
- BDD workflow support
- Shared parser libraries
Use cases
- Acceptance test automation
- Living documentation
- Cross-team requirement examples
- Behaviour specification reviews
- Scenario-based regression checks