New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps marked undefined in Cypress project #231
Comments
Hey @viditasatam, thanks for raising and appreciate your interest in the project! The extension provides default paths for locating glue files and feature files - following some typical project structures. From the screenshots of your project, I observe your files would fall outside these default paths; thus some configuration of the extension is required. As a Inside your workspace in VSCode, can you create a {
"cucumber.features": [
"cypress/e2e/features/**/*.feature"
],
"cucumber.glue": [
"cypress/e2e/step_definitions/**/*.js",
"cypress/e2e/step_definitions/**/*.ts"
]
} Should this not work, there are some known parsing issues with step definitions relating to TypeScript (e.g. cucumber/language-service#187); and if you could share some sample step definitions, I'd be happy to investigate the root cause of the issue and identify any work required to resolve. |
Thanks. It works by adding this piece of code in my settings.json file :) |
Delighted to hear that - thanks for the update @viditasatam! |
👓 What did you see?
I am using Cypress (13.9.0) with cucumber (cucumber.io) plugin in VSCode IDE.
My file structure for feature file is
cypress/e2e/features/SCC/*.feature
, file structure for step definition iscypress/e2e/step_definitions/SCC/*.ts
tsconfig.json:
package.json:
When I run the feature file, it runs fine but feature file shows warning on each step and am unable to navigate to step def through feature file. Please suggest.
✅ What did you expect to see?
Feature file steps should be glued to step definition file steps. Also I should be able to navigate to step def steps from feature files.
📦 Which tool/library version are you using?
"typescript": "^5.4.5"
"cypress": "^13.9.0",
"cypress-cucumber-preprocessor": "^4.3.1",
"@badeball/cypress-cucumber-preprocessor": "^20.0.5",
🔬 How could we reproduce it?
No response
📚 Any additional context?
No response
The text was updated successfully, but these errors were encountered: