newman-action icon indicating copy to clipboard operation
newman-action copied to clipboard

Question: Support for custom reporter

Open pb1919 opened this issue 3 years ago • 2 comments

Hi,

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

Thanks!

pb1919 avatar Jul 16 '21 12:07 pb1919

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

ezekielassurdly avatar Aug 07 '21 10:08 ezekielassurdly

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!

pb1919 avatar Aug 08 '21 04:08 pb1919