-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Windows path with the --format option works in v7, is broken in v8 #1920
Comments
Hi @ironduke71 Thanks for the report! Could you make a try with cucumber v8.0.0-rc.1? That would help us identify if the issue has been introduced with rc.1 or rc.2 |
Hi, With 8.0.0-rc.1 it gives a different error:
|
Thanks 👍 |
I think this will be related to the change to use import instead of require to load support code. |
To elaborate a bit,
More about this: nodejs/node#31710 Assuming I'm not wrong we should just need to document this in the changelog and migration guide. |
Testing version 8.0.0-rc.2 running directly from Intellij IDEA via the Cucumber.js plugin. It generates a command line such as this:
C:\Dev\Apps\nodejs\node.exe C:\Dev\ws\sandbox\NLRTestAutomation\node_modules@cucumber\cucumber\bin\cucumber-js C:\Dev\ws\sandbox\NLRTestAutomation\features\search-plan.feature --tags @env-shared --format c:\Dev\Home\ideau\plugins\CucumberJavaScript\lib\cucumberjs_formatter_v7.js --format-options "{"cucumberLibPath": "C:/Dev/ws/sandbox/NLRTestAutomation/node_modules/@cucumber/cucumber/lib"}" --format-options "{"colorsEnabled": true}" --publish-quiet --require C:/Dev/ws/sandbox/NLRTestAutomation/features
It immediately fails with this error:
Error: EISDIR: illegal operation on a directory, open 'C:\Dev\ws\sandbox\NLRTestAutomation'
Expected behavior
Running the same with version 7.3.2 worked fine.
Desktop
Additional context
It appears the cause is having the Windows drive letter in the path. If I change this:
To this:
It works fine.
The text was updated successfully, but these errors were encountered: