Step Definitions Not Found Unless Feature File Name Matches Step File – @badeball/cypress-cucumber-preprocessor v22.0.1 #1302
|
Hi everyone, I'm working on a Cypress automation project using @badeball/cypress-cucumber-preprocessor v22.0.1 and Cypress v14.4.1. I’ve run into an issue where my tests only work if the .feature file name exactly matches the name of the step definition .js file. If the names differ, I get the following error: I’ve tried placing my step definitions in cypress/support/step_definitions/, but unless the file name matches the .feature file, the steps aren’t recognized. Has anyone else encountered this? Is there a way to configure the preprocessor to decouple the file name dependency? Any help or suggestions would be greatly appreciated! Thanks in advance! |
Replies: 3 comments
There is a way, you can configure |
|
https://github.com/badeball/cypress-cucumber-preprocessor/blob/master/docs/configuration.md |
|
Your guidance helped me successfully update my automation project to use @badeball/cypress-cucumber-preprocessor v22.0.1 and Cypress v14.4.1. Everything is working smoothly now. Really appreciate the support! |
https://github.com/badeball/cypress-cucumber-preprocessor/blob/master/docs/configuration.md