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

Code coverage trend is empty if only one build exists

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: jacoco-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.501 / Tomcat 6 / JDK 1.6.0_18 / Debian 6 / x86
    • Similar Issues:

      Description

      Obviously it is impossible to draw a trend line. But it would be great if the trend graph would not be completely empty if a job produced only one single coverage report so far, since it had only one build running yet.

      I want to suggest to simply draw coloured dots for each bild before drawing the trend line. In that case, even a single build's coverage result would be visible in the graph.

        Attachments

          Activity

          Hide
          mheinzerling Martin Heinzerling added a comment -

          Implemented first version. (Ignore the font )

          centic, please review.

          Show
          mheinzerling Martin Heinzerling added a comment - Implemented first version. (Ignore the font ) centic , please review.
          Hide
          centic centic added a comment - - edited

          Looks good to me, only it would be better to not aggregate the changes from the different issues on the fix-branches, but rather only fix one issue in a branch to be able to merge them without pulling in other unrelated and unreviewed fixes.

          Show
          centic centic added a comment - - edited Looks good to me, only it would be better to not aggregate the changes from the different issues on the fix-branches, but rather only fix one issue in a branch to be able to merge them without pulling in other unrelated and unreviewed fixes.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Martin Heinzerling
          Path:
          resources/test/singleBuild.png
          src/main/java/hudson/plugins/jacoco/model/CoverageGraphLayout.java
          src/main/java/hudson/plugins/jacoco/model/CoverageObject.java
          src/test/java/hudson/plugins/jacoco/model/CoverageObjectGraphTest.java
          http://jenkins-ci.org/commit/jacoco-plugin/14d6f139c9749ff08a373c280fa3e0e75f1a4aa1
          Log:
          JENKINS-16787: add shape and center plot for single-build-graphs

          Compare: https://github.com/jenkinsci/jacoco-plugin/compare/4f5fbd90cfde^...14d6f139c974

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Martin Heinzerling Path: resources/test/singleBuild.png src/main/java/hudson/plugins/jacoco/model/CoverageGraphLayout.java src/main/java/hudson/plugins/jacoco/model/CoverageObject.java src/test/java/hudson/plugins/jacoco/model/CoverageObjectGraphTest.java http://jenkins-ci.org/commit/jacoco-plugin/14d6f139c9749ff08a373c280fa3e0e75f1a4aa1 Log: JENKINS-16787 : add shape and center plot for single-build-graphs Compare: https://github.com/jenkinsci/jacoco-plugin/compare/4f5fbd90cfde ^...14d6f139c974
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Martin Heinzerling
          Path:
          resources/test/singleBuild.png
          src/main/java/hudson/plugins/jacoco/model/CoverageGraphLayout.java
          src/main/java/hudson/plugins/jacoco/model/CoverageObject.java
          src/test/java/hudson/plugins/jacoco/model/CoverageObjectGraphTest.java
          http://jenkins-ci.org/commit/jacoco-plugin/6a41ae880af0a22eac3906676063e9c32035fe2e
          Log:
          JENKINS-16787: add shape and center plot for single-build-graphs

          Compare: https://github.com/jenkinsci/jacoco-plugin/compare/14d6f139c974...6a41ae880af0

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Martin Heinzerling Path: resources/test/singleBuild.png src/main/java/hudson/plugins/jacoco/model/CoverageGraphLayout.java src/main/java/hudson/plugins/jacoco/model/CoverageObject.java src/test/java/hudson/plugins/jacoco/model/CoverageObjectGraphTest.java http://jenkins-ci.org/commit/jacoco-plugin/6a41ae880af0a22eac3906676063e9c32035fe2e Log: JENKINS-16787 : add shape and center plot for single-build-graphs Compare: https://github.com/jenkinsci/jacoco-plugin/compare/14d6f139c974...6a41ae880af0
          Hide
          mheinzerling Martin Heinzerling added a comment -

          Integrated into master.

          Show
          mheinzerling Martin Heinzerling added a comment - Integrated into master.

            People

            • Assignee:
              mheinzerling Martin Heinzerling
              Reporter:
              mkarg Markus KARG
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: