Details

    • Similar Issues:

      Description

      The ratio M:C view on the red / green bar is wrong sometimes. Please check the calculation. See example attached

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Marcus Bauer
          Path:
          src/main/java/hudson/plugins/jacoco/model/Coverage.java
          src/main/java/hudson/plugins/jacoco/model/CoverageObject.java
          http://jenkins-ci.org/commit/jacoco-plugin/6adf351a1cef5438d98bf49d4dbc1c45a4b5ec1c
          Log:
          JENKINS-17027 Red/green ratio is wrong

          This issue is adressed by taking the total number of lines, etc. into account – instead of only the covered or missing items (depends on whether you have 50% coverage or more)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marcus Bauer Path: src/main/java/hudson/plugins/jacoco/model/Coverage.java src/main/java/hudson/plugins/jacoco/model/CoverageObject.java http://jenkins-ci.org/commit/jacoco-plugin/6adf351a1cef5438d98bf49d4dbc1c45a4b5ec1c Log: JENKINS-17027 Red/green ratio is wrong This issue is adressed by taking the total number of lines, etc. into account – instead of only the covered or missing items (depends on whether you have 50% coverage or more)
          Hide
          centic centic added a comment -

          Should be fixed in jacoco-plugin 1.0.14

          Show
          centic centic added a comment - Should be fixed in jacoco-plugin 1.0.14
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ognjenb
          Path:
          src/main/java/hudson/plugins/jacoco/model/Coverage.java
          src/main/java/hudson/plugins/jacoco/model/CoverageObject.java
          src/main/java/hudson/plugins/jacoco/report/CoverageReport.java
          http://jenkins-ci.org/commit/jacoco-plugin/03bae7894d9b2a0c93c07a831534a39a7c84fb89
          Log:
          Merge pull request #30 from mabako/ratio

          JENKINS-17027 Red/green ratio is wrong

          Compare: https://github.com/jenkinsci/jacoco-plugin/compare/3a9f2f3d8483...03bae7894d9b

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ognjenb Path: src/main/java/hudson/plugins/jacoco/model/Coverage.java src/main/java/hudson/plugins/jacoco/model/CoverageObject.java src/main/java/hudson/plugins/jacoco/report/CoverageReport.java http://jenkins-ci.org/commit/jacoco-plugin/03bae7894d9b2a0c93c07a831534a39a7c84fb89 Log: Merge pull request #30 from mabako/ratio JENKINS-17027 Red/green ratio is wrong Compare: https://github.com/jenkinsci/jacoco-plugin/compare/3a9f2f3d8483...03bae7894d9b
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Marcus Bauer
          Path:
          src/main/java/hudson/plugins/jacoco/model/Coverage.java
          src/main/java/hudson/plugins/jacoco/model/CoverageObject.java
          http://jenkins-ci.org/commit/jacoco-plugin/571045f9f4a2eaabc83ee4009352f77bc0de05d9
          Log:
          JENKINS-17027 Red/green ratio is wrong

          This issue is adressed by taking the total number of lines, etc. into account – instead of only the covered or missing items (depends on whether you have 50% coverage or more)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marcus Bauer Path: src/main/java/hudson/plugins/jacoco/model/Coverage.java src/main/java/hudson/plugins/jacoco/model/CoverageObject.java http://jenkins-ci.org/commit/jacoco-plugin/571045f9f4a2eaabc83ee4009352f77bc0de05d9 Log: JENKINS-17027 Red/green ratio is wrong This issue is adressed by taking the total number of lines, etc. into account – instead of only the covered or missing items (depends on whether you have 50% coverage or more)
          Hide
          ggrazioli Guido Grazioli added a comment -

          My 2c: the report should reflect the same graphical representation generated by the jacoco site report, to avoid confusion.

          https://github.com/jenkinsci/jacoco-plugin/pull/33

          Show
          ggrazioli Guido Grazioli added a comment - My 2c: the report should reflect the same graphical representation generated by the jacoco site report, to avoid confusion. https://github.com/jenkinsci/jacoco-plugin/pull/33

            People

            • Assignee:
              ognjenb Ognjen Bubalo
              Reporter:
              marcell Marcel L
            • Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: