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
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
Playwright
Testing & QA
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Fire
Apache-2.0vs BrowserStack★ 101k
Robot Framework
Testing & QA
Generic automation framework for acceptance testing and RPA
Apache-2.0vs Katalon★ 12k
Appium
Testing & QA
Cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriv
Apache-2.0vs BrowserStack★ 22k
Mocha
Web Browsers
☕️ Classic, reliable, trusted test framework for Node.js and the browser
MITvs Katalon★ 23k
Jest
Testing & QA
Delightful JavaScript Testing.
MITvs Katalon★ 45k
TestCafe
Testing & QA
A Node.js tool to automate end-to-end web testing.
MITvs Katalon★ 9.9k

Katalon
testRigor
Parasoft