Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace 'forceNoColor' parameter with 'color' #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions NewmanPostman/newmantask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ function GetToolRunner(collectionToRun: string) {
let unicodeDisabled = tl.getBoolInput('unicodeDisabled');
newman.argIf(unicodeDisabled, ['--disable-unicode']);

let forceNoColor = tl.getBoolInput('forceNoColor');
newman.argIf(forceNoColor, ['--no-color']);
let color = tl.getInput('color');
newman.argIf((typeof color != 'undefined') && ((color == 'on') || (color == 'off')), ['--color', color]);

let reporterHtmlTemplate = tl.getPathInput('reporterHtmlTemplate', false, true);
newman.argIf(typeof reporterHtmlTemplate != 'undefined' && tl.filePathSupplied('reporterHtmlTemplate'), ['--reporter-html-template', reporterHtmlTemplate]);
Expand Down Expand Up @@ -93,7 +93,7 @@ function GetToolRunner(collectionToRun: string) {

let folder = tl.getInput('folder');
if(typeof folder != 'undefined' && folder) {
const splitted = folder.split(",");
const splitted = folder.split(",");
splitted.forEach(folder => {
newman.arg(['--folder', folder.trim()]);
});
Expand Down
15 changes: 10 additions & 5 deletions NewmanPostman/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,17 @@
"groupName": "output"
},
{
"name": "forceNoColor",
"type": "boolean",
"label": "No color",
"defaultValue": false,
"name": "color",
"type": "radio",
"label": "Colored Output",
"defaultValue": "auto",
"options": {
"auto": "Auto",
"on": "On",
"off": "Off"
},
"required": false,
"helpMarkDown": "Turn off usage of color in terminal output.",
"helpMarkDown": "Enable or disable colored CLI output.",
"groupName": "output"
},
{
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Realize that this will then NOT fail your pipeline because your tests failed. Th
Following command line options are **not supported**:

- `-x`,`--suppress-exit-code`
- `-color`
- `--ssl-client-passphrase`
- None of the [CLI option](https://github.com/postmanlabs/newman#cli-reporter-options)

Expand Down