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

Feature file names with more than 68 characters is crashing the test report #417

Open
alfreddcrz opened this issue Jan 16, 2025 · 0 comments

Comments

@alfreddcrz
Copy link

Environment (please complete the following information)

  • multiple-cucumber-html-reporter: 3.9.0
  • Node.js version: 20.11.1
  • NPM version: 10.2.4
  • Platform name and version: Windows 10
  • Cucumber version: latest

Config of multiple-cucumber-html-reporter

cucumberReporter JSON generated using playwright config. Used Reporter.ts to generate the custom report based on the JSON created

Describe the bug

Feature file names with more than 68 characters is crashing the test report

To Reproduce

Steps to reproduce the behavior:

  1. Created a new feature file with Feature name more than 68 character long.
  2. Created a new test scenario under the feature file.
  3. Executed the feature file using the custom report generator.
  4. Successfully generated the report and able to see the summary page which list the names of features that are executed.
  5. Click on the feature name with more than 68 character long.
  6. Error displayed saying file not found.

Tried executing with shorter name for feature name and the report works as expected without any issues.

[Include code or an example repository that can easily be set up]

Expected behavior

Report able to navigate to the feature summary page.

Log

If applicable, add logs to help explain your problem. If you don't have logs, enable 'debug:true' in the config and paste the log here.
Please use proper markdown to style it

Additional context

Add any other context about the problem here.

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