MishaKav / pytest-coverage-comment

Comments a pull request with the pytest code coverage badge and full report
MIT License
181 stars 60 forks source link

Some output values return empty #117

Closed 0x78f1935 closed 1 year ago

0x78f1935 commented 1 year ago

Weirdly enough my output variables are empty. I'm sending the test results into MS-Teams.

image image

The comment itself seems to generate nicely.

image

The coverage step:

    - name: Pytest Coverage Comment
      id: coverageComment
      uses: MishaKav/pytest-coverage-comment@v1.1.45
      with:
        pytest-xml-coverage-path: ./htmlcov/coverage.xml
        title: PyTest Coverage
        badge-title: PyTest Coverage
        default-branch: ${{ github.ref }}

Am I missing something?

MishaKav commented 1 year ago

Outputs that you want are under junitxml-path as you can see here, you can see how to get it in first usage example