1.0.8 • Published 5 years ago
newman-reporter-slackthread v1.0.8
newman-reporter-slackthread
Installation
npm install newman-reporter-slackthread
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'