NewmanPostman_VSTS_Task icon indicating copy to clipboard operation
NewmanPostman_VSTS_Task copied to clipboard

input forceNoColor does not work.

Open viperx77 opened this issue 6 years ago • 3 comments

Newman option is documented as:

--color Enable or Disable colored CLI output. The color value can be any of the three: on, off or auto(default). With auto, Newman attempts to automatically turn color on or off based on the color support in the terminal. This behaviour can be modified by using the on or off value accordingly.

But code uses:

    let forceNoColor = tl.getBoolInput('forceNoColor');
    newman.argIf(forceNoColor, ['--no-color']);

viperx77 avatar Jan 30 '19 18:01 viperx77

Link to docs.

It seems --no-color has been removed.

carlowahlstedt avatar Jan 31 '19 13:01 carlowahlstedt

In addition changes were made for HTML report, I guess not a common used option, but we should envision a support for postman version 4 ?

sebcaps avatar Feb 20 '19 19:02 sebcaps

I would say we update the task to support the latest version. When you're installing it on a hosted agent, whatever is installed by npm by default is what people will be using. I would assume postman isn't planning to support older versions, but something we should probably look into

carlowahlstedt avatar Feb 20 '19 20:02 carlowahlstedt