Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-76245

How is branch coverage calculated?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • coverage-model
    • None

      Hi,

      I have a Cobertura report generated from MATLAB which shows the branch coverage as 66.667% but when using the Coverage plugin to read the report, the branch coverage shown is 100%.

      I wanted to understand why this discrepancy is happening.  Attaching a sample coverage report generated from MATLAB and screenshot of the coverage metrics. 

      coverageReportMATLAB.xml

      Thank you!

       

        1. coverageReportMATLAB.xml
          2 kB
          MathWorks Ci Team
        2. image-2025-10-29-11-02-51-216.png
          31 kB
          MathWorks Ci Team

            drulli Ulli Hafner
            mathworks_ci_team MathWorks Ci Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: