Automated acceptance tests written in plain language
open sourceMITfree
Cucumber runs automated acceptance tests written in plain language: scenarios in Gherkin's Given, When, Then steps, which anyone on the team can read, matched to step definitions in code. It's the tool behaviour-driven development (BDD) grew up around. Its team maintains the Gherkin parser and official implementations for JavaScript (Cucumber-JS), Java and Kotlin (Cucumber-JVM, including Android), Ruby, Scala and C++, and other projects bring Gherkin to Python (Behave, pytest-bdd), PHP (Behat), .NET (Reqnroll) and more. A volunteer team, the Cucumber Open Source Project, maintains it under the MIT licence, funded by sponsors such as SmartBear.
Problems it solves
- write acceptance tests that product managers and testers can read
- practise behaviour-driven development with executable specifications
- turn plain-English requirements into automated tests for a JavaScript or Java app
Features
- write tests as Gherkin scenarios: Given, When, Then in plain language
- official implementations for JavaScript, Java, Kotlin, Ruby, Scala and C++
- step definitions that bind plain-language steps to code
- scenario outlines with example tables, tags and hooks
- HTML, JSON and JUnit reports
Alternatives
The same job
These do what Cucumber does.
- Behat Behaviour-driven development for PHP
- Robot Framework Open source keyword-driven framework for test automation and robotic process automation
- RSpec Behaviour-driven testing framework for Ruby
- Cypress AI writes the code. Cypress proves it works.
- Jasmine Behaviour-driven JavaScript testing framework for browsers and Node.js