-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Can't define feature files in an arbitrary location #1225
Comments
This has been fixed with v21.0.0. |
Hi @badeball , thanks for the fix. For some reason it doesn't work on my side. When I use the same project I provided I'm still getting an error. This time it fails on another level, but also related to folder structure from what I can see.
If I move feature on the same level as cypress and update cypress.config.ts - then all is good like on the previous version. Tried different Cypress versions - still the same. Can you please confirm it is really working on your side? |
I tested it, albeit not on windows, let alone windows with cache & project on different drives. This is a use case I'm not going to invest time in, but you can try to create another issue outlining a minimal reproducible example and I can tag it with "help wanted". |
@badeball , my apologies - it now runs on my side as well. I didn't delete package-lock.json on my side and Cypress version was locked to v12.14.0. So after I resolved this and really used latest Cypress version (13.15.0) it started to work with no issues! Will try to see if I can upgrade our test solution to the latest version. Thanks again! |
Current behavior
I like to define project structure like the below so I can access .feature files from different frameworks implementation (UI on Cypress, API on Java etc.):
When I define
specPattern: "../_features/**/*.feature"
Cypress clearly finds all the features, but then preprocessor fails with error:I see this handler in step-definitions.js so seems it was done intentionally, but still - I hope this limitation could be re-worked
Desired behavior
I'd like to be able to define folder with .feature files in any location. This works fine in Java Cucumber project for me. Found similar problem description in issue 395, but the provided workaround not working for me.
Test code to reproduce
Please find project zip attached. This is super minimum structure that clearly reproduces the issue.
cypress-cucumber-featuresFailure.zip
Versions
Checklist
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: