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.

      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.

          [JENKINS-22412] The code coverage view does not display correctly when data for one of the columns is missing.

          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.

          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.

          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.

          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.

          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.

          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.

          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 .

          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 .

          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

          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

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

              Created:
              Updated:
              Resolved: