Skip to content
Integration of TestCafe and CucumberJS
JavaScript Gherkin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
features Updating code so that screenshot is attached on failure Mar 5, 2019
reports added reports folder Mar 27, 2018
.gitignore added the package-lock.json file Mar 5, 2019
LICENSE Create LICENSE May 9, 2018 Added Contributors section Mar 5, 2019
package.json Updating testcafe, cucumber versions Mar 5, 2019

Integration of TestCafe and CucumberJS

This is a demonstration of integration TestCafé into CucumberJS tests using TestCafe and Cucumber.

Big thank you to helen-dikareva for your help in starting the integration with your repo. This is a fork of all of the hard work you've put in.

Also, thanks to the team at TestCafé for allowing testers to break away from Selenium.

Depreciation Notice - There are talks to officially support the Gherkin syntax in TestCafé. Once those changes are in place I will no longer support this repo. Please voice your support of these changes becoming native to TestCafé.


TestCafé 1.1.0
CucumberJS 5.1.0


  1. Make sure Node.js is installed
  2. Navigate to the root of the repo
  3. Use the npm install command

Running tests


You can run tests by executing the .\node_modules\.bin\cucumber-js.cmd or npm test commands in command prompt

Mac or Linux

You can run tests by executing node_modules/cucumber/bin/cucumber-js



  • As of the time I am writting this, there is only 1 passing test of 3. I decided to not make all of the tests passing, so you could see how failures are handled.

  • My solution closes the TestCafé browser between each scenario. I tried to keep it open between scenarios but had trouble with handling failures. If you find a solution, I'd like to know.

  • With TestCafé version 0.19.0, you no longer have to manually update stack-chain. Thank you to the TestCafé crew for making the integration much easier.


Thanks to everyone who has contributed to this project over the last few years.

cmasekar benkirbyten10 vvedachalam azzra
You can’t perform that action at this time.