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

Cucmber HTML Report is having ANSI values #314

Open
varshanharshank opened this issue Jan 28, 2024 · 3 comments
Open

Cucmber HTML Report is having ANSI values #314

varshanharshank opened this issue Jan 28, 2024 · 3 comments
Labels

Comments

@varshanharshank
Copy link

Environment (please complete the following information):

  • multiple-cucumber-html-reporter: 3.6.0
  • Node.js version: v18.17.1
  • NPM version: 9.6.7
  • Platform name and version: macOs sonoma 14.3
  • Cucumber version: [e.g. 4.2.0]

Config of multiple-cucumber-html-reporter
I configured the report using the below file

//cucumberReport.ts

import report = require('multiple-cucumber-html-reporter')
report.generate({
jsonDir: 'reports/cucumberReport',
reportName: 'Purple Portal Report',
reportPath: './reports/cucumberReport',
metadata: {
browser: {
name: '',
version: '',
},
device: 'Local test machine',
platform: {
name: '',
version: '',
},
},
customData: {
title: 'Run info',
data: [
{ label: 'Project', value: 'CRSP' },
{ label: 'Application', value: 'Purple Portal' },
],
},
})

Describe the bug
In the Html report, assertion error is showing with ANSI Values. But, terminal it is displaying correctlry
Terminal Output
image

Cucumber Html Report

image

To Reproduce
Steps to reproduce the behavior:

  1. Project is configured with Playwright
  2. running the command with the following command npx cucumber-js test --tags '@smoke'
  3. cucumber.json files is given below
    //cucumber.json
    {
    "default": {
    "paths": ["src/test/features"],
    "require": ["src/test/stepDefinitions/*.ts", "src/hooks/hooks.ts"],
    "requireModule": ["ts-node/register"],
    "publishQuiet": true,
    "format": [
    "progress-bar",
    "./src/helper/report/allureReport.ts:./output.txt",
    "html:reports/cucumberReport/cucumber-report.html",
    "json:reports/cucumberReport/cucumber-report.json"
    ],
    "parallel": 1
    }
    }
    package.json
image

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

Expected behavior
ANSI Values should not be present in the html file

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.

@varshanharshank
Copy link
Author

@WasiqB any update about this issue

@WasiqB
Copy link
Owner

WasiqB commented Feb 7, 2024

Hi @varshanharshank , did you test this issue using the latest version 3.6.2?

Let me know if the issue still exists.

@varshanharshank
Copy link
Author

@WasiqB Yes itried with 3.6.2 version and still seeing this issue. Refer the below info

In terminal, it is showing the text properly but in the repot it is not showing properly

CLI screen
image

Report

image

@WasiqB WasiqB added the bug label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants