Not able to test feature file(BDD framework) with Cypress on LambdaTest

I am not able to test feature file on lambdatest and getting error “feature file not identified”

You need to pass “feature_file_suppport”: true in the lambdatest-config.json file and that will help the grid to pick your features file. Please find below the steps to configure feature file support with LambdaTest.

  1. Install – npm install --save-dev cypress-cucumber-preprocessor

  2. This will add “cypress-cucumber-preprocessor”:“4.0.3” in package.json file

  3. Add below configuration in Index.js


const cucumber = require(‘cypress-cucumber-preprocessor’).default module.exports = (on, config) => { on(‘file:preprocessor’, cucumber()) }

  1. Add below configuration in Cypress.json File

“ignoreTestFiles”: “.js", “testFiles”: "**/.{feature,features}”

  1. Add below configuration in package.json File

“cypress-cucumber-preprocessor”: { “nonGlobalStepDefinitions”: true

  1. Mark true in lambdatest-config.json File “feature_file_support”:true,
1 Like