-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
formatter: colorsEnabled: true not honoured #2011
Comments
@binarymist I've raised this as the place to discuss your issue from #1711 (comment). Am I right that you're running cucumber-js on a server environment and then presenting the output to users elsewhere? So you add For 8.0.0 we switched libraries from |
Hi @davidjgoss and thanks!
Yes. the CLI text output with colour codes is sent to Redis which lands in the orchestrator service. The orchestrator then sends the text from Redis to the CLI which is on the end users machine. Also note we're still on "@cucumber/cucumber": "^8.0.0-rc.3" @aurelien-reeves Will try
Correct. The creation of the cucumber args Where the cucumber args are used
The option has been there for 3-4 years. Not sure it's always been default?
Because it's an array (see above link to "The creation of the cucumber args"). Nothing has changed here in over 3 years. Thanks both. |
|
You can look at #2026 to see what is going on |
This is released in 8.2.0, see the updated doc: https://github.com/cucumber/cucumber-js/blob/main/docs/formatters.md#colored-output |
π What did you see?
When outputting to a non-TTY environment, using
colorsEnabled: true
in the format options doesn't result in colours being output.β What did you expect to see?
Colours to be output, because of this logic:
In other words, if we specify the option, it should output colours without checking if the stream is TTY.
π¦ Which tool/library version are you using?
cucumber-js 8.1.2
π¬ How could we reproduce it?
TBA
The text was updated successfully, but these errors were encountered: