newman icon indicating copy to clipboard operation
newman copied to clipboard

“--color off” not woking after 6.0.0 upgrade

Open mminot-yseop opened this issue 2 years ago • 2 comments
trafficstars

  1. Newman Version: Gone from 5.something to 6.0.0
  2. OS details:
    • Local machine: Xubuntu 20.04, x86_64
    • CI/CD machine: Amazon Linux 2, x86_64
  3. Using Newman via the CLI, npm install -g newman.
  4. Encountered this recently.
  5. Expected behaviour: No color when asked, as in v5.
  6. Command / script used to run Newman: Any newman run command, even with a dummy collection: newman run --color off <(echo '{}')

Today I noticed that part of our CI/CD was broken due to a regex not matching anything. It turned out that our Newman logs were suddenly full of color-related control characters, despite --color off --disable-unicode being used:

CI/CD screenshot

I could reproduce this on my machine: even with --color off, the final summary (table + failure list) is colorized:

Local machine screenshot

I’ve seen old tickets mentioning --no-color but it seems that it does not exist (at least in v6) for run.

mminot-yseop avatar Oct 23 '23 09:10 mminot-yseop

I`ve seen the same behavior in Jenkins console. Could fix the issue please?

luprochazka-cen63872 avatar Jan 24 '24 09:01 luprochazka-cen63872

I`ve seen the same behavior in Jenkins console. Could fix the issue please?

On our side, we’re using https://stackoverflow.com/a/18000433 while waiting for a fix.

mminot-yseop avatar Jan 24 '24 09:01 mminot-yseop

Same here, jenkins console output is unreadable.

Mapmo avatar Mar 14 '24 09:03 Mapmo

This is fixed in Newman v6.1.2.

Thank you @yardenshoham for the fix. 🙌🏻

codenirvana avatar Mar 14 '24 16:03 codenirvana

Thanks. I guess they’re watching the issues even when they’re silent. 😆

mminot-yseop avatar Mar 14 '24 16:03 mminot-yseop