irongut / CodeCoverageSummary

A GitHub Action that reads Cobertura format code coverage files and outputs a text or markdown summary.
MIT License
196 stars 56 forks source link

Parsing Error: Coverage fill invalid, data not found. target/site/jacoco/jacoco.xml #341

Open briceashburn opened 1 month ago

briceashburn commented 1 month ago

Bug Report

Java Spring Boot application. xml file seems to be improperly formatted and may be the cause.

Workflow File

   steps:
      - uses: actions/setup-java@v4.2.2
        with:
          distribution: 'oracle'
          java-version: '17'
          overwrite-settings: false

      - uses: actions/checkout@v4.1.7
      - name: Build with Maven
        run: mvn -B clean verify

      - name: Code Coverage Report
        uses: irongut/CodeCoverageSummary@v1.3.0
        with:
          filename: './target/site/jacoco/jacoco.xml'
          badge: true
          format: markdown
          hide_branch_rate: false
          hide_complexity: false
          indicators: true
          output: both

Actions Log

Parsing Error: Coverage fill invalid, data not found. target/site/jacoco/jacoco.xml

Expected Behavior

Expected behavior should be a formatted XML and successfully report.

Additional Context

Add any other context about the problem here.

Linked To

List any issues linked to this bug.