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

The code coverage view does not display correctly when data for one of the columns is missing.

    Details

    • Similar Issues:

      Description

      Python projects don't generate anything for the 'Methods' column, causing the data to be shifted to the left. The screenshot shows the Lines data under the Methods and Conditionals under Lines.

      Working on a fix for this now.

        Attachments

          Activity

          Hide
          tamini Tristan Amini added a comment - - edited

          This is what it looks like after the fix. The last row being one I added to show how it handles N/A with one that has data.

          Show
          tamini Tristan Amini added a comment - - edited This is what it looks like after the fix. The last row being one I added to show how it handles N/A with one that has data.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Tristan Amini
          Path:
          src/main/java/hudson/plugins/cobertura/targets/CoverageResult.java
          src/main/resources/hudson/plugins/cobertura/dashboard/CoverageTablePortlet/portlet.jelly
          http://jenkins-ci.org/commit/cobertura-plugin/aa6deca3d65f9ee8e4ab144b2a7bd65c2fc5f664
          Log:
          JENKINS-22412 Update values in portlet to show N/A instead of 0 when no data is present.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tristan Amini Path: src/main/java/hudson/plugins/cobertura/targets/CoverageResult.java src/main/resources/hudson/plugins/cobertura/dashboard/CoverageTablePortlet/portlet.jelly http://jenkins-ci.org/commit/cobertura-plugin/aa6deca3d65f9ee8e4ab144b2a7bd65c2fc5f664 Log: JENKINS-22412 Update values in portlet to show N/A instead of 0 when no data is present.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Tristan Amini
          Path:
          src/test/java/hudson/plugins/cobertura/CoverageResultTest.java
          src/test/resources/hudson/plugins/cobertura/coverage-no-data.xml
          http://jenkins-ci.org/commit/cobertura-plugin/35eada44589022e58bc1122d7fd9533eedc8994f
          Log:
          JENKINS-22412 Added test for new getMetricsWithEmpty() method.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tristan Amini Path: src/test/java/hudson/plugins/cobertura/CoverageResultTest.java src/test/resources/hudson/plugins/cobertura/coverage-no-data.xml http://jenkins-ci.org/commit/cobertura-plugin/35eada44589022e58bc1122d7fd9533eedc8994f Log: JENKINS-22412 Added test for new getMetricsWithEmpty() method.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Tristan Amini
          Path:
          src/test/resources/hudson/plugins/cobertura/coverage-no-data.xml
          http://jenkins-ci.org/commit/cobertura-plugin/0ca769dc8f537c8f1bb2ef71b6f5f319bcc72579
          Log:
          JENKINS-22412 Removed extra lines in coverage-no-data.xml .

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tristan Amini Path: src/test/resources/hudson/plugins/cobertura/coverage-no-data.xml http://jenkins-ci.org/commit/cobertura-plugin/0ca769dc8f537c8f1bb2ef71b6f5f319bcc72579 Log: JENKINS-22412 Removed extra lines in coverage-no-data.xml .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Tristan Amini
          Path:
          src/main/java/hudson/plugins/cobertura/targets/CoverageResult.java
          src/main/resources/hudson/plugins/cobertura/dashboard/CoverageTablePortlet/portlet.jelly
          src/test/java/hudson/plugins/cobertura/CoverageResultTest.java
          src/test/resources/hudson/plugins/cobertura/coverage-no-data.xml
          http://jenkins-ci.org/commit/cobertura-plugin/7d9770316c4e59ef681aa2af2d4f3406faf564e8
          Log:
          Merge pull request #27 from Tamini/develop

          JENKINS-22412 : Portlet view has missing and wrongly aligned columns when a metric has no data.

          Compare: https://github.com/jenkinsci/cobertura-plugin/compare/1355378b6564...7d9770316c4e

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tristan Amini Path: src/main/java/hudson/plugins/cobertura/targets/CoverageResult.java src/main/resources/hudson/plugins/cobertura/dashboard/CoverageTablePortlet/portlet.jelly src/test/java/hudson/plugins/cobertura/CoverageResultTest.java src/test/resources/hudson/plugins/cobertura/coverage-no-data.xml http://jenkins-ci.org/commit/cobertura-plugin/7d9770316c4e59ef681aa2af2d4f3406faf564e8 Log: Merge pull request #27 from Tamini/develop JENKINS-22412 : Portlet view has missing and wrongly aligned columns when a metric has no data. Compare: https://github.com/jenkinsci/cobertura-plugin/compare/1355378b6564...7d9770316c4e

            People

            • Assignee:
              tamini Tristan Amini
              Reporter:
              tamini Tristan Amini
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: