Runs a Newman test script and outputs the summary to a Slack webhook
- Install Newman v3+:
$ npm install -g newman
(Requires Node v4+) - Create a new Slack incoming webhook and copy your webhook URL
- Download the latest release of Newman to Slack
- Run
$ ./Newman-to-Slack.sh
Thats it!
Newman-to-Slack.sh -- Runs a Newman test script and outputs the summary to a Slack webhook
Options:
-h, --help Show this help text
-c, --collection [arg] URL or path to a Postman Collection
-f, --config [file] Run a bash configuration environment (overwrites passed args)
-e, --environment [file] Postman Environment to reference
-w, --webhook [url] Slack Webhook URL
-g, --global [file] Postman Global Environment
-a, --additional [command] Additional Newman command
-v, --verbose [-v -v] Verbose (add more -v for increased verbosity)
-V, --version Version
Where: -c [arg] and -w [url] is required
$ ./Newman-to-Slack.sh -c mycollection.json.postman_collection -w https://hooks.slack.com/services/url
- Permission issues? Try
chmod 744 Newman-to-Slack.sh
first. - Empty `````` output in Slack? Check Newman & Node versions.
The latest version of Newman is required to run Newman-to-Slack.
See the migration guide for more information.
Newman v3+ requires that Node v4+ is installed.
View the Changelog