postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.86k stars 1.16k forks source link

Fix `--color off` not being respected in summary table #3212

Closed yardenshoham closed 6 months ago

yardenshoham commented 6 months ago

We have to pass border: [] to disable colors on the table.

yardenshoham commented 6 months ago

Hi @codenirvana, not sure I fully understand you. Do you suggest this?

- const coloredOutput = /^[\u001b[0m]+newman/; 
+ const coloredOutput = /\u001b/; 
codenirvana commented 6 months ago

Yes.

We check for starting text instead of whether the <Escape> character exists.