SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-540

Ability to reuse an existing coverage reports for Flex projects

    Details

      Description

      It is desirable to be able to import an existing code coverage report (from a Flex project) and display it in Sonar. Currently, the Sonar core only allows for Java based reports to be displayed.

      1. coverage.xml
        1 kB
        Tony Georgiev
      2. sonar-flex-cobertura-patch
        17 kB
        Tony Georgiev

        Issue Links

          Activity

          Hide
          OLD - Evgeny Mandrikov added a comment - - edited

          If you talk about MavenPluginHandler, then you're wrong, because it's used for Maven plugin execution, but we talk about report reuse mode.

          Seems that I know why Sensor not executed - I'll take some time tomorrow to investigate this. Any way thanks for your help.

          Show
          OLD - Evgeny Mandrikov added a comment - - edited If you talk about MavenPluginHandler, then you're wrong, because it's used for Maven plugin execution, but we talk about report reuse mode. Seems that I know why Sensor not executed - I'll take some time tomorrow to investigate this. Any way thanks for your help.
          Hide
          OLD - Evgeny Mandrikov added a comment -

          Fixed in r3599.

          Show
          OLD - Evgeny Mandrikov added a comment - Fixed in r3599 .
          Hide
          Josh Figler added a comment -

          Awesome – THANKS guys! I'm looking very forward to reusing Cobertura reports for flex!

          Show
          Josh Figler added a comment - Awesome – THANKS guys! I'm looking very forward to reusing Cobertura reports for flex!
          Hide
          Murray Furtado added a comment -

          So can I use Cobertura for Flex now? Is this fixed in 0.4? If so, can you provide some sample config? I have tried using flexmojos 4.x <coverage>true</coverage> but this generates a parse exception as follows:

          net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " "<" "< "" at line 1, column 1.
          Was expecting one of:

          "abstract" ...
          "class" ...
          "enum" ...
          "final" ...
          "import" ...
          "interface" ...
          "native" ...
          "package" ...
          "private" ...
          "protected" ...
          "public" ...
          "static" ...
          "strictfp" ...
          "synchronized" ...
          "transient" ...
          "volatile" ...
          ";" ...
          "@" ...
          "@" ...
          "@" ...
          "@" ...
          "package" ...

          at net.sourceforge.cobertura.javancss.parser.JavaParser.generateParseException(JavaParser.java:10296)
          at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_consume_token(JavaParser.java:10172)
          at net.sourceforge.cobertura.javancss.parser.JavaParser.CompilationUnit(JavaParser.java:455)
          at net.sourceforge.cobertura.javancss.parser.JavaParser.parse(JavaParser.java:137)
          at net.sourceforge.cobertura.javancss.Javancss._measureSource(Javancss.java:256)
          at net.sourceforge.cobertura.javancss.Javancss._measureRoot(Javancss.java:339)
          at net.sourceforge.cobertura.javancss.Javancss.(Javancss.java:419)
          at net.sourceforge.cobertura.reporting.ComplexityCalculator.getAccumlatedCCNForSource(ComplexityCalculator.java:102)

          Show
          Murray Furtado added a comment - So can I use Cobertura for Flex now? Is this fixed in 0.4? If so, can you provide some sample config? I have tried using flexmojos 4.x <coverage>true</coverage> but this generates a parse exception as follows: net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " "<" "< "" at line 1, column 1. Was expecting one of: "abstract" ... "class" ... "enum" ... "final" ... "import" ... "interface" ... "native" ... "package" ... "private" ... "protected" ... "public" ... "static" ... "strictfp" ... "synchronized" ... "transient" ... "volatile" ... ";" ... "@" ... "@" ... "@" ... "@" ... "package" ... at net.sourceforge.cobertura.javancss.parser.JavaParser.generateParseException(JavaParser.java:10296) at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_consume_token(JavaParser.java:10172) at net.sourceforge.cobertura.javancss.parser.JavaParser.CompilationUnit(JavaParser.java:455) at net.sourceforge.cobertura.javancss.parser.JavaParser.parse(JavaParser.java:137) at net.sourceforge.cobertura.javancss.Javancss._measureSource(Javancss.java:256) at net.sourceforge.cobertura.javancss.Javancss._measureRoot(Javancss.java:339) at net.sourceforge.cobertura.javancss.Javancss.(Javancss.java:419) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getAccumlatedCCNForSource(ComplexityCalculator.java:102)
          Hide
          OLD - Evgeny Mandrikov added a comment -

          Hi,
          This was implemented in 0.4 and was tested with Flex Mojos 3.6.1.
          If you have problems, then please switch to users mailing list in order to investigate them.

          Show
          OLD - Evgeny Mandrikov added a comment - Hi, This was implemented in 0.4 and was tested with Flex Mojos 3.6.1. If you have problems, then please switch to users mailing list in order to investigate them.

            People

            • Assignee:
              OLD - Evgeny Mandrikov
              Reporter:
              michael hessick
            • Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: