1.0.1 • Published 5 years ago

newman-reporter-slackinfo-withthreading v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

newman-reporter-slackinfo-withthreading

A newman reporter for slack

Installation

npm install newman-reporter-slackinfo-withthreading

Usage

Set the reporter options

Reporter option can be set as environment variables or from reporter options arguments

export SLACK_WEBHOOK_URL='https://hooks.slack.com/services/xxx/yyy/zzzzzzzzzzzz'
export SLACK_CHANNEL='#slack-channel'
export TITLE='newman run title'
export HEADER='newman run header'
export THREAD='{thread_ts}'

Run newman test with the reporter option -r slack

newman run my-collection.postman_collection.json -r cli,slack --reporter-slack-channel '#slack-channel' --reporter-slack-webhook-url 'https://hooks.slack.com/services/xxx/yyy/zzzzzzzzzzzz'