5monkeys / cobertura-action

GitHub Action to report cobertura coverage
MIT License
63 stars 69 forks source link

Coverage always show 100% #51

Open Laki7877 opened 3 years ago

Laki7877 commented 3 years ago

Hi

I'm trying to use thin action to help me generate coverage report. But when I see the bot comment on my Pull Request I always see it 100%

CoverageTestReport

Here is my coverage.xml

https://raw.githubusercontent.com/Laki7877/grails/main/coverage.xml

and here is my action yaml examle

- name: Add coverage to PR
        id: cobertura
        uses: 5monkeys/cobertura-action@v9
        with:
          path: ${{ github.workspace }}/target/test-reports/cobertura/*.xml
          repo_token: ${{ secrets.GITHUB_TOKEN }}
          minimum_coverage: 40
          skip_covered: false
          show_line: false
          show_branch: false
          show_class_names: true
          show_missing: true
          only_changed_files: false
syamimikhalil commented 2 years ago

Hi. Have you tried using the latest ver (v12) or master? I had the same issue as yours, but my error was that I set the ‘skip_covered’ to true. I changed to false, and it works.

However, suggesting you on the ver since i’m using the master ver.