Newman to Slack
Runs a Newman test script and outputs the summary to a Slack webhook
Getting Started
-
Install Newman:
$ npm install -g newman
(Requires Node) - 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!
Usage
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
Examples
Run a collection and post the summary to a Slack channel
$ ./Newman-to-Slack.sh -c mycollection.json.postman_collection -w https://hooks.slack.com/services/url
Newman v3.1+
The latest version of Newman is required to run Newman-to-Slack.
See the migration guide for more information.