Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Support for custom reporter #236

Open
pb1919 opened this issue Jul 16, 2021 · 2 comments
Open

Question: Support for custom reporter #236

pb1919 opened this issue Jul 16, 2021 · 2 comments

Comments

@pb1919
Copy link

pb1919 commented Jul 16, 2021

Hi,

Is it possible to use custom reporters? I'm specifically interested in jackcoded / newman-reporter-slackmsg.

Thanks!

@ezekielassurdly
Copy link

I have a similar request. Would be great to have allure-reports for this.

@pb1919
Copy link
Author

pb1919 commented Aug 8, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants