Skip to content
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

HTML formatter missing from 7.0.0-rc.0 ? #1507

Closed
nickgrealy opened this issue Dec 9, 2020 · 1 comment
Closed

HTML formatter missing from 7.0.0-rc.0 ? #1507

nickgrealy opened this issue Dec 9, 2020 · 1 comment

Comments

@nickgrealy
Copy link

nickgrealy commented Dec 9, 2020

Hi,

Version: "@cucumber/cucumber": "7.0.0-rc.0" (package.json)

When attempting to run cucumber-js --format html:html-formatter.html, I get the following error:

Error: Cannot find module '/Users/myproject/html'
Require stack:
- /Users/myproject/node_modules/@cucumber/cucumber/lib/formatter/builder.js
- /Users/myproject/node_modules/@cucumber/cucumber/lib/cli/index.js
- /Users/myproject/node_modules/@cucumber/cucumber/lib/cli/run.js
- /Users/myproject/node_modules/@cucumber/cucumber/bin/cucumber-js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at Function.Module._load (internal/modules/cjs/loader.js:686:27)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.loadCustomFormatter (/Users/myproject/node_modules/@cucumber/cucumber/lib/formatter/builder.js:74:33)
    at Object.getConstructorByType (/Users/myproject/node_modules/@cucumber/cucumber/lib/formatter/builder.js:55:41)
    at Object.build (/Users/myproject/node_modules/@cucumber/cucumber/lib/formatter/builder.js:23:55)
    at /Users/myproject/node_modules/@cucumber/cucumber/lib/cli/index.js:96:38

Looking at the published source, there is no option for html in the switch statement - so it falls back to assuming html is a custom formatter.

Here is the merged PR for #1432
... but the change isn't in the source for the released hash

@nickgrealy
Copy link
Author

It's not in the 7.0.0-rc.0 release... I jumped the gun. => In since been committed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant