{"id":15014103,"url":"https://github.com/jackcoded/newman-reporter-slackmsg","last_synced_at":"2025-04-09T19:23:06.934Z","repository":{"id":40479849,"uuid":"272301617","full_name":"jackcoded/newman-reporter-slackmsg","owner":"jackcoded","description":"Custom Newman reporter for slack","archived":false,"fork":false,"pushed_at":"2023-01-06T09:17:55.000Z","size":858,"stargazers_count":18,"open_issues_count":13,"forks_count":26,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T07:06:41.674Z","etag":null,"topics":["newman","newman-reporter-slackmsg","slack","slack-bots","webhook-url"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackcoded.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-14T23:38:45.000Z","updated_at":"2025-03-31T17:08:36.000Z","dependencies_parsed_at":"2023-02-05T18:46:40.220Z","dependency_job_id":null,"html_url":"https://github.com/jackcoded/newman-reporter-slackmsg","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcoded%2Fnewman-reporter-slackmsg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcoded%2Fnewman-reporter-slackmsg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcoded%2Fnewman-reporter-slackmsg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcoded%2Fnewman-reporter-slackmsg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackcoded","download_url":"https://codeload.github.com/jackcoded/newman-reporter-slackmsg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248095812,"owners_count":21046914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["newman","newman-reporter-slackmsg","slack","slack-bots","webhook-url"],"created_at":"2024-09-24T19:45:11.579Z","updated_at":"2025-04-09T19:23:06.912Z","avatar_url":"https://github.com/jackcoded.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# newman-reporter-slackmsg\n\nCustom [Newman](https://github.com/postmanlabs/newman) reporter to send message to [Slack](https://slack.com/)\n\n\u003cimg src=\"https://github.com/jackcoded/newman-reporter-slackmsg/blob/master/testResults.png?raw=true\" width=\"450\"  height=\"550\"\u003e\n\n## Before you get started\n- Install [Newman](https://github.com/postmanlabs/newman) ``` $ npm run i -g newman ```\n- Create a [Slack incoming webhook url](https://api.slack.com/messaging/webhooks)\nor\n- Create a [Slack bot to send to channel or user dynamically](https://api.slack.com/messaging/sending)\n\n## Installation\n ```CLI\n npm i -g newman-reporter-slackmsg\n ```\n\n## Usage\n```CLI\n newman run \u003ccollectionFile\u003e -e \u003cenvironmentFile\u003e --suppress-exit-code -r slackmsg --reporter-slackmsg-webhookurl '\u003cwebhookurl\u003e'\n```\n\n## Usage with channel override bot\n```CLI\n newman run \u003ccollectionFile\u003e -e \u003cenvironmentFile\u003e --suppress-exit-code -r slackmsg --reporter-slackmsg-webhookurl '\u003chttps://slack.com/api/chat.postMessage\u003e' --reporter-slackmsg-token '\u003cbearer token\u003e' --reporter-slackmsg-channel '\u003cchannel or userid\u003e'\n```\n\n## Reporter Options Optionals\n```\n --reporter-slackmsg-messageSize '\u003cmessageSize\u003e' e.g 150\n --reporter-slackmsg-token '\u003cbearer token\u003e' e.g xoxb-XXXXXXXXXXXX-TTTTTTTTTTTTTT\n --reporter-slackmsg-channel '\u003cchannel\u003e' e.g #general\n --reporter-slackmsg-failuresChannel '\u003cchannel\u003e' e.g. #alerts\n --reporter-slackmsg-collection '\u003ccollectionName\u003e e.g test.json\n --reporter-slackmsg-environment '\u003cenvironmentName\u003e e.g env.json\n --reporter-slackmsg-reportingurl '\u003cURL\u003e e.g https://127.0.1/index.html\n  --reporter-slackmsg-limitFailures '\u003climitFailures\u003e; e.g 5\n\n```\n\n\n## Reporter Options\n**webhookurl** \nWebhook URL to point to the slack api where results are published\n\n**collection** \nOption to add the name of collection file onto the message\n\n**environment**\nOption to add the name of environment file onto the message\n\n**messageSize**\nOption to change the message size, defaulted to 100\n\n**token**\nOption to use bearer token for slack bots for channel override\n\n**channel**\nOption to select channel or user receive the result\n\n**failuresChannel**\nOption to select channel or user to receive failures\n\n**limitFailures**\nOption to limit the amount failures shown in slack\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackcoded%2Fnewman-reporter-slackmsg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackcoded%2Fnewman-reporter-slackmsg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackcoded%2Fnewman-reporter-slackmsg/lists"}