WasiqB / multiple-cucumber-html-reporter

Generate beautiful Cucumber HTML reports
https://github.com/WasiqB/multiple-cucumber-html-reporter/blob/main/README.md
MIT License
250 stars 117 forks source link

Cucmber HTML Report is having ANSI values #314

Open varshanharshank opened 8 months ago

varshanharshank commented 8 months ago

Environment (please complete the following information):

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 commented 8 months ago

@WasiqB any update about this issue

WasiqB commented 8 months ago

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

Let me know if the issue still exists.

varshanharshank commented 7 months ago

@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