talira

Cucumber

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.

  1. Behat Behaviour-driven development for PHP
  2. Robot Framework Open source keyword-driven framework for test automation and robotic process automation
  3. RSpec Behaviour-driven testing framework for Ruby
  4. Cypress AI writes the code. Cypress proves it works.
  5. Jasmine Behaviour-driven JavaScript testing framework for browsers and Node.js

Compare Cucumber with the top 3