postmanlabs / newman

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

“--color off” not woking after 6.0.0 upgrade #3169

Closed mminot-yseop closed 5 months ago

mminot-yseop commented 10 months ago
  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.

luprochazka-cen63872 commented 7 months ago

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

mminot-yseop commented 7 months ago

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.

Mapmo commented 5 months ago

Same here, jenkins console output is unreadable.

codenirvana commented 5 months ago

This is fixed in Newman v6.1.2.

Thank you @yardenshoham for the fix. 🙌🏻

mminot-yseop commented 5 months ago

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