Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avidit/newman-reporter-slack
A newman reporter for slack
https://github.com/avidit/newman-reporter-slack
newman newman-reporter postman slack
Last synced: about 2 months ago
JSON representation
A newman reporter for slack
- Host: GitHub
- URL: https://github.com/avidit/newman-reporter-slack
- Owner: avidit
- License: mit
- Created: 2018-08-09T15:56:06.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2024-03-13T15:17:47.000Z (10 months ago)
- Last Synced: 2024-10-19T05:15:27.511Z (2 months ago)
- Topics: newman, newman-reporter, postman, slack
- Language: JavaScript
- Size: 141 KB
- Stars: 11
- Watchers: 5
- Forks: 19
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# newman-reporter-slack
A [newman](https://github.com/postmanlabs/newman) reporter for [slack](https://slack.com/)
newman run
| collection - environment | total | failed |
|--------------------------|-------|---------|
| iterations | 1 | 0 |
| requests | 1 | 0 |
| testScripts | 1 | 0 |
| prerequestScripts | 1 | 0 |
| assertions | 1 | 0 |
| ------------------------ | ----- | ------- |
| total run duration | 100ms | |## Installation
```npm install newman-reporter-slack```
## Usage
### Set the reporter options
Reporter option can be set as environment variables or from reporter options arguments
```sh
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'
```### 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'```