How to integrate Cucumber-BDD framework in Cypress??

Install the plugin by running:

npm install --save-dev cypress-cucumber-preprocessor

Cypress Configuration

Add it to your plugins: Go to & update at  cypress/plugins/index.js

const cucumber = require('cypress-cucumber-preprocessor').default

module.exports = (on, config) => {
  on('file:preprocessor', cucumber())

Add support for feature files to your Cypress configuration at:


  "testFiles": "**/*.feature"

Go back to package.Json and update under dependencies: 

"cypress-cucumber-preprocessor": {
  "nonGlobalStepDefinitions": true

Install vscode-icons plugin: File>Preferences>File Icon theme>Vscode Icons

Install Cucumber (Gherkin) Full Support:

Share the Knowledge

You May Also Like

About the Author: codenbox

Leave a Reply

Your email address will not be published. Required fields are marked *