CodeCoverageSummary icon indicating copy to clipboard operation
CodeCoverageSummary copied to clipboard

Discrepancies in code coverage between irongut/CodeCoverageSummary and PublishCodeCoverageResults@1

Open paweljankowskicolumbus opened this issue 1 year ago • 1 comments

Bug Report

Code coverage seems to be 0% for some of the projects, while there is coverage almost 100%.

Workflow File

      - name: Test
        run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage

      - name: Code Coverage Summary Report
        uses: irongut/[email protected]
        with:
          filename: 'coverage/**/coverage.cobertura.xml'
          badge: true
          format: 'markdown'
          output: 'both'

Expected Behavior

Code coverage summary should not differ depend on CI/CD environment

Additional Context

You can see results on attached screenshots below, Azure Devops shows correct values while CodeCoverageSummary action zeroes it for one project. Also, how branch rate can be 100% while line rate is 0%

ironGut azureDevops

paweljankowskicolumbus avatar Jun 25 '24 07:06 paweljankowskicolumbus

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Sep 24 '24 02:09 github-actions[bot]

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Dec 25 '24 02:12 github-actions[bot]

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Mar 26 '25 02:03 github-actions[bot]

This issue was closed because it has been stale for 30 days with no activity.

github-actions[bot] avatar Apr 25 '25 02:04 github-actions[bot]