newman-action
newman-action copied to clipboard
Question: Support for custom reporter
Hi,
Is it possible to use custom reporters? I'm specifically interested in jackcoded / newman-reporter-slackmsg.
Thanks!
I have a similar request. Would be great to have allure-reports for this.
Hi,
I've had to work around it by using newman cli until there is a better option.
# Install Node on the runner
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: '12.x'
# Install the newman command line utility and also install the html extra reporter
- name: Install newman
run: |
npm install -g newman
npm install -g newman-reporter-slackreporter
- name: Run API Tests
id: run-newman
run: |
newman run ./test/newman/Newman.postman_collection.json \
-e ./test/newman/Sandbox.postman_environment.json \
--suppress-exit-code \
--delay-request 100 \
--insecure \
-r slackreporter \
--reporter-slackreporter-webhookurl ${{ secrets.SLACK_WEBHOOK }} \
--reporter-slackreporter-collection "Collection Name In Report" --reporter-slackreporter-environment Sandbox
Hopefully we can get support for other reporters in newman-action at some stage.
Thanks!