Cobertura line coverage results is wrong

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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?

            Assignee:
            Ulli Hafner
            Reporter:
            Kiyoshi Ohgishi
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: