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

NUnit plugin fails while converting to JUnit XML


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: nunit-plugin
    • Labels:
    • Environment:
      Jenkins ver. 1.599
    • Similar Issues:


      My NUnit tests run fine, but when i'm trying to get my information to report i get an error:

      Results (nunit3) saved as TestResult.xml

      C:\Program Files (x86)\Jenkins\workspace\NUnit Testie Test>exit 0
      Recording NUnit tests results
      ERROR: Publisher hudson.plugins.nunit.NUnitPublisher aborted due to exception
      hudson.util.IOException2: Could not transform the NUnit report. Please report this issue to the plugin author
      at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:60)
      at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26)
      at hudson.FilePath.act(FilePath.java:989)
      at hudson.FilePath.act(FilePath.java:967)
      at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:116)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
      at hudson.model.Run.execute(Run.java:1743)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files%20(x86)/Jenkins/workspace/NUnit%20Testie%20Test/temporary-junit-reports/temp-junit.xml; lineNumber: 32; columnNumber: 1; Premature end of file.
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:102)
      at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:72)
      at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:55)
      ... 13 more
      Finished: FAILURE

      I'm new to Jenkins and have been hacking away here but something just isn't right here.

      I checked the TestResults.xml and it's populated and verified it's in my workspace.

      *check image/xml attached
      workspace.png and TestResult.xml

      In the error i see it reference:

      I checked an the file has a lot of hard returns but no data in it.

      temp-junit.xml attached

      Also noted PostBuild.png attached.

      Any help would be great. I have both the NUnit plug in installed as well as the xUnit.

      Just trying to figure out how to get them to show me what i need.



        1. PostBuild.png
          18 kB
        2. temp-junit.xml
          0.4 kB
        3. TestResult.xml
          3 kB
        4. Workspace.png
          29 kB


          renmg Ren Goodman created issue -
          sttodorov Stoyan Todorov made changes -
          Field Original Value New Value
          Attachment TestResult-Sttodorov.xml [ 31699 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 161235 ] JNJira + In-Review [ 180623 ]
          sttodorov Stoyan Todorov made changes -
          Attachment TestResult-Sttodorov.xml [ 31699 ]
          slide_o_mix Alex Earl made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]


            • Assignee:
              kinow Bruno P. Kinoshita
              renmg Ren Goodman
            • Votes:
              2 Vote for this issue
              7 Start watching this issue


              • Created: