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

Change coverage values from integer to two-decimal value on build detail

    XMLWordPrintable

Details

    Description

      Shortly first - we need show coverage values on build detail with two decimal places.

      We use Bitbucket Pull Requests Builder functionality on Jenkins to check java pull requests on out project. One of out measurements on PR is (line) coverage percentage. But one PR often change only part of percent point. Example:

      Main branch has 85,99% coverage, after PR build ir has 85,50%. So one PR "steal" half percent of coverage BUT! we still see coverage as 85% because build detail shows only integer (whole number) value. We need to check build coverage exactly but it is not possible for now.

      PIC1: Coverage on dashboard - OK here.
      PIC2: Docerage on build detail - NOT ok here.

      Bottom line: i think it is not good to show same value with different representation on different places on Jenkins web UI.

      Attachments

        1. pic1.png
          pic1.png
          6 kB
        2. pic2.png
          pic2.png
          13 kB

        Activity

          centic centic added a comment - - edited

          There is related work in https://github.com/jenkinsci/jacoco-plugin/pull/84, although it wants to change it to 6 decimal places, which is likely to much for most uses, so an adjusted PR which makes this configurable would be welcome here.

          centic centic added a comment - - edited There is related work in https://github.com/jenkinsci/jacoco-plugin/pull/84, although it wants to change it to 6 decimal places, which is likely to much for most uses, so an adjusted PR which makes this configurable would be welcome here.

          People

            ognjenb Ognjen Bubalo
            bigboban Petr Leitner
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: