postmanlabs / newman

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

--disable-unicode does not change Console.log output #770

Closed larsmeldgaard closed 7 years ago

larsmeldgaard commented 7 years ago

When using the --disable-unicode option, the output should only consist of non-unicode characters.

However if I use something like this in a test:

var jsonData = JSON.parse(responseBody); console.log(jsonData);

...the output has a left margin with a straight line. This look great in CLI, but not-so-great in a ascii text logfile from vsts.

image

In the sample picture, you can see that the "Pass" is written as letters - not the unicode checkmark, but the Console.out is still Unicode.

Example command line: newman run postman_collection.json --reporters cli --disable-unicode

kunagpal commented 7 years ago

Hey @larsmeldgaard, thanks for bringing this to our attention. We've added a fix on our end, this will go out in the next Newman release. :smile:

kunagpal commented 7 years ago

@larsmeldgaard This has been fixed in Newman v3.3.1, do go ahead and check it out :smile:

larsmeldgaard commented 7 years ago

Awesome! Kudos to the team.

kunagpal commented 7 years ago

:grin: