Cucumber is a testing framework for executing software specifications written in plain language. It is widely associated with behaviour-driven development, an approach that encourages developers, testers and business stakeholders to describe expected system behaviour through shared examples.
Specifications are written in Gherkin, a structured language using features, scenarios and steps. These descriptions become executable when matching step definitions connect them to application code, browser automation or API operations. This allows the same scenarios to serve as both readable documentation and automated acceptance tests.
Cucumber is available through several implementations supporting different development ecosystems. The testing framework does not dictate which browser automation or assertion libraries must be used, allowing teams to integrate it with their established testing infrastructure.
This is free and open source software.
Key Features
- Define executable specifications using Gherkin.
- Organise scenarios into feature files.
- Describe behaviour using Given, When and Then steps.
- Connect scenario steps to executable step definitions.
- Reuse step definitions across multiple scenarios.
- Parameterise examples using Scenario Outlines.
- Supply structured input through data tables and doc strings.
- Apply tags to organise and select scenarios.
- Execute setup and teardown logic through hooks.
- Use Background sections for common scenario preconditions.
- Generate structured execution output for reporting tools.
- Integrate with browser, API and application testing libraries.
- Support reusable documentation shared by technical and non-technical stakeholders.
- Run scenarios through command-line and continuous integration workflows.
- Use localised Gherkin keywords for different spoken languages.
Website: cucumber.io
Support:
Developer: SmartBear and contributors
License: MIT License
Cucumber is written in Java, TypeScript, C, Go, Ruby, C#, and other languages.
Related Software
| Test Automation Tools | |
|---|---|
| Appium | Open source automation tool |
| Cypress | Fast, easy and reliable testing |
| Robot Framework | Python-based, extensible keyword-driven automation framework |
| Cucumber | Tool for running automated tests written in plain language |
| Selenium | Portable framework for testing web applications |
| Gauge | Lightweight cross-platform test automation tool which uses Markdown |
| Nightwatch | Integrated testing framework powered by Node.js |
| WebdriverIO | Browser and mobile automation framework for Node.js |
| Detox | Gray-box end-to-end testing framework for mobile apps |
| Allure Report | Multi-language test report tool |
| Karate | Unified test automation framework |
| Dojo Toolkit | JavaScript toolkit that scales with your development process |
| TestCafe | Node.js framework for automated end-to-end web testing |
| Playwright | Framework for web testing and automation |
| Maestro | End-to-end testing framework for mobile and web apps |
| CodeceptJS | Scenario-driven end-to-end testing framework for Node.js |
| Schemathesis | Property-based testing for OpenAPI and GraphQL APIs |
| tox | Automate and standardize testing in Python |
| nox | Automates testing in multiple Python environments, similar to tox |
| Carina | Java-based test automation framework that unites all testing layers |
| Testsigma | Extensible test automation platform that works out of the box |
| SeleniumBase | Python framework for browser automation and web testing |
| Watir | Web application testing in Ruby |
| Serenity | Test automation reporting library (previously known as Thucydides) |
| Selenide | Concise Java framework for writing Selenium-based tests |
| Cerberus Testing | Low-code test automation platform |
| Galen | Tool for testing layout and responsive design of web applications |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.