Details

    • Similar Issues:

      Description

      When I run NUnit tests using the NUnit 3 Beta 1 the tests execute but the build fails when the NUnit plugin tries to publish the results. Exception I get in Jenkins console is:

      Test Run Summary
      Overall result: Passed
      Tests run: 9, Passed: 9, Errors: 0, Failures: 0, Inconclusive: 0
      Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
      Start time: 2015-04-12 04:15:47Z
      End time: 2015-04-12 04:24:43Z
      Duration: 535.974 seconds

      Results (nunit3) saved as nunit-selenium-testsuite.xml

      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:1766)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Jenkins/workspace/Saucery3NUnit/temporary-junit-reports/temp-junit.xml; lineNumber: 12; columnNumber: 9; Content is not allowed in prolog.
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
      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)

        Attachments

        1. jenkins-nunit3-error.txt
          4 kB
        2. nunit.hpi
          19 kB
        3. nunit2_TestResult.xml
          2 kB
        4. nunit3_TestResult.xml
          3 kB
        5. nunit-selenium-testsuite.xml
          9 kB
        6. TestResult.xml
          2 kB

          Issue Links

            Activity

              People

              • Assignee:
                slide_o_mix Alex Earl
                Reporter:
                apgray Andrew Gray
              • Votes:
                25 Vote for this issue
                Watchers:
                40 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: