newman
newman copied to clipboard
“--color off” not woking after 6.0.0 upgrade
- Newman Version: Gone from 5.something to 6.0.0
- OS details:
- Local machine: Xubuntu 20.04, x86_64
- CI/CD machine: Amazon Linux 2, x86_64
- Using Newman via the CLI,
npm install -g newman. - Encountered this recently.
- Expected behaviour: No color when asked, as in v5.
- Command / script used to run Newman: Any
newman runcommand, 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:
I could reproduce this on my machine: even with --color off, the final summary (table + failure list) is colorized:
I’ve seen old tickets mentioning --no-color but it seems that it does not exist (at least in v6) for run.
I`ve seen the same behavior in Jenkins console. Could fix the issue please?
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.
Same here, jenkins console output is unreadable.
This is fixed in Newman v6.1.2.
Thank you @yardenshoham for the fix. 🙌🏻
Thanks. I guess they’re watching the issues even when they’re silent. 😆