cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.04k stars 1.09k forks source link

How to set monochrome? #2291

Closed ortoniKC closed 1 year ago

ortoniKC commented 1 year ago

👓 What did you see?

When a test fails junk characters are visible on the report and JSON file. image

✅ What did you expect to see?

Failure message with npo junk characters.

📦 Which tool/library version are you using?

"@cucumber/cucumber": "^9.0.1", "@playwright/test": "^1.31.2",

🔬 How could we reproduce it?

A simple test expect failure.

KrishNair1 commented 1 year ago

@ortoniKC one of the options cucumber provides is this: https://github.com/cucumber/cucumber-js/blob/main/docs/formatters.md#colored-output

I used FORCE_COLOR=0 in CLI and worked for me.

ortoniKC commented 1 year ago

@KrishNair1 Thanks mate, it worked.