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.
-
Install – npm install --save-dev cypress-cucumber-preprocessor
-
This will add “cypress-cucumber-preprocessor”:“4.0.3” in package.json file
-
Add below configuration in Index.js
cypress\plugins\index.js
const cucumber = require(‘cypress-cucumber-preprocessor’).default module.exports = (on, config) => { on(‘file:preprocessor’, cucumber()) }
- Add below configuration in Cypress.json File
“ignoreTestFiles”: “.js", “testFiles”: "**/.{feature,features}”
- Add below configuration in package.json File
“cypress-cucumber-preprocessor”: { “nonGlobalStepDefinitions”: true
- Mark true in lambdatest-config.json File “feature_file_support”:true,
1 Like