Skip to content

Allure report misaligns test data when it contains commas #1363

Description

@AnshuAnand

Describe the bug
When test data in the Cucumber Examples table includes commas, the generated Allure report incorrectly splits the data into multiple columns, disorienting the display of parameters.

To Reproduce
Steps to reproduce the behavior:

  1. Create a project with a feature file.
  2. Add a Scenario Outline with an Examples table where one or more values contain a comma (,). Example below:
Image
  1. Run the tests using cucumber-js.
  2. Generate and open the Allure report.
  3. Observe that the report splits the data after commas into separate columns.
Image 6. The CSV file generated under allure-results does not escape commas in the test data, resulting in incorrect parsing of CSV columns. Image

Expected behavior
Commas in test data should be escaped using double quotes so that the Allure report correctly displays the data in the intended columns.

Image

If the commas in test data are escaped using double quotes, the report is in right format

Image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version Chrome v138.0.7204.101

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions