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

Gallio/MbUnit 3.2.603 generated report is not being correctly parsed by the Gallio plugin.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: gallio-plugin, xunit-plugin
    • Labels:
      None
    • Environment:
      Windows Server 2008 R2, Gallio 3.2 build 603, Hudson 1.387, Hudson xUnit plugin 1.12, Hudson Gallio plugin 1.1
    • Similar Issues:

      Description

      I am unable to generate an XML file acceptable to the xUnit plugin so the report can be utilized in the web UI.

      I currently have Gallio running as a Windows Batch Command with the following:
      "C:\Program Files\Gallio\bin\Gallio.Echo.exe" /np /rnf:gallio.report /rt:Xml-Inline /v:Quiet RoadMap.Tests\bin\Debug\RoadMap.Tests.dll

      I'm not sure if anything has changed in the format of the report since previous versions of Gallio/Mbunit. The gallio.report.xml file does show the unit tests I have created with the status in there, although the post task does not see any of them in the log file.

      Console Output:
      C:\Program Files (x86)\Hudson\node\Emerald\workspace\RoadMap>exit 1
      [TASKS] Scanning workspace files for tasks...
      [WARNINGS] Skipping publisher since build result is FAILURE
      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing Gallio-N/A
      [xUnit] [WARNING] - Can't create the path C:\Program Files (x86)\Hudson\node\Emerald\workspace\RoadMap\generatedJUnitFiles. Maybe the directory already exists.
      [xUnit] [INFO] - [Gallio-N/A] - 1 test report file(s) were found with the pattern 'Reports\gallio.*.xml' relative to 'C:\Program Files (x86)\Hudson\node\Emerald\workspace\RoadMap' for the testing framework 'Gallio-N/A'.
      [xUnit] [INFO] - Converting 'C:\Program Files (x86)\Hudson\node\Emerald\workspace\RoadMap\Reports\gallio.report.xml' .
      [xUnit] [ERROR] - The plugin hasn't been performed correctly: None of the test reports contained any result
      Finished: FAILURE

        Attachments

        1. A2_20110119.xml
          81 kB
        2. ManualTest.xml
          80 kB
        3. S1_20110119.xml
          178 kB

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          Could you send me your gallio input file?
          I will test it and fix the problem if any.

          Show
          gbois Gregory Boissinot added a comment - Could you send me your gallio input file? I will test it and fix the problem if any.
          Hide
          espenalb espenalb added a comment - - edited

          I am observing the same issue - seems to apply to specific xml files. Some xml files succeed, some don't.
          It looks like it is related to datadriven tests -

          <Test> public void SomeTest() {} // Not parsed
          <Test>
          <Row("a")>
          public void AnotherTest(string s) {} // Is parsed OK.

          We are using Gallio Version 3.2 build 676, Master and Slave are running Hudson 1.392, Gallio plugin is 1.1, xUnit plugin is 1.13

          Generated xml files are OK and contains results, and they can be converted to html by the Gallio.Utility.exe application.

          The file fails to parse - will attach files:
          Recording fingerprints
          Archiving artifacts
          [xUnit] [INFO] - Starting to record.
          [xUnit] [INFO] - Processing Gallio-N/A
          [xUnit] [WARNING] - Can't create the path c:\hudson\CC85xx.1.0.x-Reports\generatedJUnitFiles. Maybe the directory already exists.
          [xUnit] [INFO] - [Gallio-N/A] - 2 test report file(s) were found with the pattern 'TestReports*.xml' relative to 'c:\hudson\CC85xx.1.0.x-Reports' for the testing framework 'Gallio-N/A'.
          [xUnit] [INFO] - Converting 'c:\hudson\CC85xx.1.0.x-Reports\TestReports\A2_20110119.xml' .
          [xUnit] [INFO] - Converting 'c:\hudson\CC85xx.1.0.x-Reports\TestReports\S1_20110119.xml' .
          [xUnit] [ERROR] - The plugin hasn't been performed correctly: None of the test reports contained any result

          Show
          espenalb espenalb added a comment - - edited I am observing the same issue - seems to apply to specific xml files. Some xml files succeed, some don't. It looks like it is related to datadriven tests - <Test> public void SomeTest() {} // Not parsed <Test> <Row("a")> public void AnotherTest(string s) {} // Is parsed OK. We are using Gallio Version 3.2 build 676, Master and Slave are running Hudson 1.392, Gallio plugin is 1.1, xUnit plugin is 1.13 Generated xml files are OK and contains results, and they can be converted to html by the Gallio.Utility.exe application. The file fails to parse - will attach files: Recording fingerprints Archiving artifacts [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing Gallio-N/A [xUnit] [WARNING] - Can't create the path c:\hudson\CC85xx.1.0.x-Reports\generatedJUnitFiles. Maybe the directory already exists. [xUnit] [INFO] - [Gallio-N/A] - 2 test report file(s) were found with the pattern 'TestReports*.xml' relative to 'c:\hudson\CC85xx.1.0.x-Reports' for the testing framework 'Gallio-N/A'. [xUnit] [INFO] - Converting 'c:\hudson\CC85xx.1.0.x-Reports\TestReports\A2_20110119.xml' . [xUnit] [INFO] - Converting 'c:\hudson\CC85xx.1.0.x-Reports\TestReports\S1_20110119.xml' . [xUnit] [ERROR] - The plugin hasn't been performed correctly: None of the test reports contained any result
          Hide
          espenalb espenalb added a comment -

          XML file that fails to parse on slave, but succeeds on master.

          Show
          espenalb espenalb added a comment - XML file that fails to parse on slave, but succeeds on master.
          Hide
          espenalb espenalb added a comment -

          Files that are failing

          Show
          espenalb espenalb added a comment - Files that are failing
          Hide
          gbois Gregory Boissinot added a comment -

          @espenalb Could you try the latest version and let me know.

          Show
          gbois Gregory Boissinot added a comment - @espenalb Could you try the latest version and let me know.
          Hide
          juergenk juergenk added a comment -

          I'm having the same issues with Gallio 3.2-603 and the Gallio Plugin 1.2.
          However replacing the shipped XSL gallio-1.0-to-junit-1.0.xsl with the file offered @ http://code.google.com/p/mb-unit/issues/detail?id=399, fixes this issue.

          Show
          juergenk juergenk added a comment - I'm having the same issues with Gallio 3.2-603 and the Gallio Plugin 1.2 . However replacing the shipped XSL gallio-1.0-to-junit-1.0.xsl with the file offered @ http://code.google.com/p/mb-unit/issues/detail?id=399 , fixes this issue.
          Hide
          gbois Gregory Boissinot added a comment -

          Fixed with Gallio 1.3

          Show
          gbois Gregory Boissinot added a comment - Fixed with Gallio 1.3

            People

            • Assignee:
              pmiossec Philippe Miossec
              Reporter:
              davidsupuran davidsupuran
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: