Cucumber Js

Open source

The JavaScript implementation of Cucumber, which runs automated acceptance tests written in plain language on Node.js.

Open-source alternative to

cucumber.io
Cucumber Js homepage screenshot
GitHub stars
5.4k
Last 30 days
+4(+0%)
Last commit
today
Repository age
15 years
Version
v13.3.0
Licence
MIT
Self-hosted
Yes

About Cucumber Js

Cucumber JS is the JavaScript version of Cucumber, a tool for running automated acceptance tests. The tests are specifications written in Gherkin, a set of grammar rules that gives plain text enough structure for Cucumber to read. Because the text is readable by anyone on a team, the project presents it as a way to improve communication, collaboration and trust.

Each specification is a feature file made of scenarios, and each scenario is a list of steps. Step definitions written in JavaScript connect those steps to the code under test. A run reports success or failure for every scenario. The repository's example has a feature file in a features folder and steps in features/support/steps.js, started with the cucumber-js command.

The package is published on npm as @cucumber/cucumber and runs on maintained versions of Node.js. The documentation also covers configuration profiles, formatters, parallel running, sharding across machines, retrying flaky scenarios, rerunning only failures and a JavaScript API for running programmatically. The code is MIT licensed.

Key features

  • Runs automated tests written in plain language
  • Installs from npm as @cucumber/cucumber
  • Gherkin gives plain text a structure Cucumber can read
  • Step definitions connect Gherkin steps to code
  • Reports success or failure for each scenario
  • Parallel running, sharding and rerunning failures
  • Formatters, filtering and a programmatic JavaScript API
  • Transpiling support, for example from TypeScript

Good fit for

  • Acceptance testing in Node.js
  • Behaviour-Driven Development
  • Executable specifications
  • Living documentation of system behaviour
Tags
testing
bdd
gherkin
javascript
nodejs
acceptance-testing
typescript

Cucumber Js: questions and answers

What is Cucumber Js used for?
Cucumber Js is the JavaScript implementation of Cucumber, which runs automated acceptance tests written in plain language on Node.js. It is a good fit for acceptance testing in Node.js, Behaviour-Driven Development and executable specifications.
Is Cucumber Js open source?
Yes. Cucumber Js is open source under the MIT licence. Its source code is on GitHub at cucumber/cucumber-js and is written mainly in TypeScript.
Is Cucumber Js free?
Yes. Cucumber Js is open source, so the software itself is free to use.
Can I self-host Cucumber Js?
Yes. Cucumber Js can be self-hosted on your own server or infrastructure.
What is Cucumber Js an alternative to?
Cucumber Js is an open-source alternative to Katalon, testRigor and Parasoft. Other open-source alternatives to Katalon include Playwright, Robot Framework and Appium.
Is Cucumber Js actively maintained?
Yes. The most recent commit to Cucumber Js was on 21 November 2026, and the latest release is v13.3.0, published on 5 October 2026. The project has 5.4k stars on GitHub, with 4 added in the last 30 days.

Open-source alternatives to Cucumber Js

See all

SaaS alternatives to Cucumber Js

See all