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

Cobertura line coverage results is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • coverage-model
    • None

      I've been using gcovr, Cobertura XML Output, and Cobertura plugin with old API.

      I have just swithched to coverage plugin.

      The line coverage is different between Cobertura and coverage.

      I checked the source code CoberturaParser.java.

      In the case of the following xml, the judgment is made if D>0.

      <line number="A" hits="B" branch="true" condition-coverage="C% (D/E)">

      Wouldn't it be correct to judge if B>0?

            drulli Ulli Hafner
            kiyoshi Kiyoshi Ohgishi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: