Comments (10)
As I thought:
putting this:
"cypress-cucumber-preprocessor": {
"step_definitions": "test/cypress/support/step_definitions"
}
in your package.json fixes the problem.
I'm thinking whether I should try to make it work for the mistakenly used "fileServerFolder": "test/cypress", as well, or just make a note in the documentation that this is no longer supported (it was deprecated a few versions back)
from cypress-cucumber-preprocessor.
Any chance of a simple reproduction? Also - could you go back a version or two and see if that helps?
from cypress-cucumber-preprocessor.
Just re-tried it in a few versions:
- 1.2.2 broken, see error in this issue description
- 1.2.0 broken, see error in this issue description
- 1.1.0 works (but 1 of our tests fails for some reason!)
- 1.0.0 works fully
So breaking change was introduced in 1.2.0.
from cypress-cucumber-preprocessor.
I'd take a wild guess and assume it's because path.relative
got removed :)
from cypress-cucumber-preprocessor.
I mean, we don't resolve the paths manually anymore, so the whole operation from that line was removed.
For now I'd recommend: don't use fileServerFolder , as it was mistakenly used for our plugin purpose. Go with the cosmicconfig and step_definitions property as explained here: https://github.com/TheBrainFamily/cypress-cucumber-preprocessor#configuration
It would be great to have a reproduction (just try to have the same structure and config and strip everything specific to your project). Unless it will be hard to me to verify the problem.
from cypress-cucumber-preprocessor.
Ok!
Here's a test repo: https://github.com/ChrisBAshton/cypress-cucumber-debug
The master version passes tests, but the broken
branch fails them: ChrisBAshton/cypress-cucumber-debug#1
from cypress-cucumber-preprocessor.
Cool! I will take a stab at this tonight.
from cypress-cucumber-preprocessor.
@ChrisBAshton It would be great if you could verify this fix and I'd love to hear your thoughts about removing the ability to use fileServerFolder for good, instead of fixing it :)
from cypress-cucumber-preprocessor.
Hi @lgandecki I can confirm that fixes it 🎉 but it does feel wrong to pollute the package.json
with Cypress-specific properties 🤔 can't this be handled in the cypress.json
?
Oh, and happy to remove fileServerFolder
from the config.
from cypress-cucumber-preprocessor.
cypress.json is for cypress configuration, and you are not configuring cypress here, really. If you don't want to pollute package.json you have all the options that https://github.com/davidtheclark/cosmiconfig gives you
from cypress-cucumber-preprocessor.
Related Issues (20)
- Json & HTML report are not generated HOT 3
- IParameterTypeDefinition should have parameter "transformer" set to optional HOT 2
- Dependency on Deprecated Version of reflect-metadata in @cucumber/[email protected] HOT 2
- Run with tag is not working on Windows 11 but in MacOs yes HOT 2
- Allure result is failed to be generated when use allure-cypress HOT 1
- Unexpected state in afterSpecHandler after an AssertionError and after each hook throws CypressError when trying to invoke cy.task() HOT 2
- explicit user configuration is not loaded in 20.0.5 HOT 6
- Error: Unexpected state in afterSpecHandler: step-finished HOT 7
- Stack trace is not working HOT 1
- Cypress-cucumber-preprocessor with Cypress-split HOT 3
- Enhancement request: remove reversal of After hooks order HOT 2
- @bahmutov/cypress-esbuild-preprocessor not installed with v20.0.5, 'Quick start' guide out of date? HOT 2
- [filepath] not including subfolders in resolution HOT 2
- Error on node_modules/@badeball/cypress-cucumber-preprocessor/dist/registry.js: HOT 7
- Incompatible types with esbuild 0.21.5 HOT 6
- Remove deprecated Browserify Preprocessor HOT 1
- Display Tests as 'Pending' in Command Line When Using '@only' or '@skip' Tags HOT 1
- Expected there to be a timestamp for current step HOT 4
- Unexpected state in beforeSpecHandler: uninitialized while running .feature file through terminal in Cypress HOT 2
- Only the first feature is executed in mode inprivate, when executing from command line HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-cucumber-preprocessor.