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

Conditionnals at 100% 0/0 on report

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello,

      when displaying a coverage report of a hudson build, the conditionals are at 100% (0/0), while the coverage.xml report file contains many conditionals data.

      It seems the plugin is not displaying correctly conditionals data from xml report.

      Hudson Coverage Plugin Version : 1.0
      Covegare Version (used to generate report): 1.9

        Attachments

          Activity

          Hide
          alecharp Adrien Lecharpentier added a comment -

          I found the source of the problem: it comes from cobertura (not any plugin) which calls the default locale of the host to form the conditionals value string. So in en_US the conditionals are "xx%" whereas in fr_FR (at least this one) it's "xx %". A space character is inserted before the percentage sign. When I tried to delete this character, it worked.
          I opened an issue for this in cobertura (3296149) but maybe this plugin could try to find out why the parser don't recognize the values.

          Thanks to find a solution, it is quite a blocking issue.

          Show
          alecharp Adrien Lecharpentier added a comment - I found the source of the problem: it comes from cobertura (not any plugin) which calls the default locale of the host to form the conditionals value string. So in en_US the conditionals are "xx%" whereas in fr_FR (at least this one) it's "xx %". A space character is inserted before the percentage sign. When I tried to delete this character, it worked. I opened an issue for this in cobertura ( 3296149 ) but maybe this plugin could try to find out why the parser don't recognize the values. Thanks to find a solution, it is quite a blocking issue.
          Hide
          evernat evernat added a comment -

          A patch is available for merge in this pull request:
          http://github.com/jenkinsci/cobertura-plugin/pull/5

          Show
          evernat evernat added a comment - A patch is available for merge in this pull request: http://github.com/jenkinsci/cobertura-plugin/pull/5
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: unknown
          Path:
          src/main/java/hudson/plugins/cobertura/CoberturaCoverageParser.java
          http://jenkins-ci.org/commit/cobertura-plugin/2d19849a2641a7fe5332ea9e4814993f8f865b7d
          Log:
          [FIX JENKINS-7540] cobertura conditionals not available with a French server + regexps optimizations

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: unknown Path: src/main/java/hudson/plugins/cobertura/CoberturaCoverageParser.java http://jenkins-ci.org/commit/cobertura-plugin/2d19849a2641a7fe5332ea9e4814993f8f865b7d Log: [FIX JENKINS-7540] cobertura conditionals not available with a French server + regexps optimizations
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          src/main/java/hudson/plugins/cobertura/CoberturaCoverageParser.java
          http://jenkins-ci.org/commit/cobertura-plugin/ee517cbbaec9652f38b28238f60279af295467d6
          Log:
          Merge pull request #5 from evernat/master

          [FIX JENKINS-7540] cobertura conditionals not available with a French server + regexps optimizations

          Compare: https://github.com/jenkinsci/cobertura-plugin/compare/ba2f9e3...ee517cb

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: src/main/java/hudson/plugins/cobertura/CoberturaCoverageParser.java http://jenkins-ci.org/commit/cobertura-plugin/ee517cbbaec9652f38b28238f60279af295467d6 Log: Merge pull request #5 from evernat/master [FIX JENKINS-7540] cobertura conditionals not available with a French server + regexps optimizations Compare: https://github.com/jenkinsci/cobertura-plugin/compare/ba2f9e3...ee517cb
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_cobertura #66
          [FIX JENKINS-7540] cobertura conditionals not available with a French server + regexps optimizations

          unknown :
          Files :

          • src/main/java/hudson/plugins/cobertura/CoberturaCoverageParser.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_cobertura #66 [FIX JENKINS-7540] cobertura conditionals not available with a French server + regexps optimizations unknown : Files : src/main/java/hudson/plugins/cobertura/CoberturaCoverageParser.java
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          It's "FIXED", not "FIX", so the daemon didn't close it.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - It's "FIXED", not "FIX", so the daemon didn't close it.

            People

            • Assignee:
              stephenconnolly Stephen Connolly
              Reporter:
              schabert schabert
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: