NUnit plugin issue

68 views
Skip to first unread message

Ruprict

unread,
Mar 18, 2011, 9:01:50 AM3/18/11
to Jenkins Users
Hi,

Setting up Jenkins with a VS.NET 2010 project that uses NUnit. I
have the nunit tests (with nunit_console_x86) producing the standard
TestResult.xml file, but jenkins is choking on it. Pertinent details:

NUnit 2.5.7.10213
Jenkins 1.401
NUnit Plugin version 0.13

Here is the error in the console output:


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:757)
at hudson.FilePath.act(FilePath.java:739)
at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:
102)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild
$AbstractRunner.perform(AbstractBuild.java:644)
at hudson.model.AbstractBuild
$AbstractRunner.performAllBuildSteps(AbstractBuild.java:623)
at hudson.model.AbstractBuild
$AbstractRunner.performAllBuildSteps(AbstractBuild.java:601)
at hudson.model.Build$RunnerImpl.post2(Build.java:159)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:
570)
at hudson.model.Run.run(Run.java:1386)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in
prolog.
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:
100)
at
hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:
71)
at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:55)
... 14 more

Any help appreciated.

Thanks,
Ruprict

Erik Ramfelt

unread,
Mar 18, 2011, 9:08:17 AM3/18/11
to jenkins...@googlegroups.com, Ruprict
Hi Glenn

That doesnt look good, i updated the plugin this week and maybe I introduced some unwanted "feature". From the exception it seems that the plugin is having problems working with the JUnit XML it just created from the NUnit XML. Very strange...

If you dont mind, it would be nice if you could create a new issue at http://issues.jenkins-ci.org/ with component=nunit; and attach the NUnit XML that is provoking the error. If you dont want to share the XML you can send it to me directly. Without the XML it would be hard to reproduce the issue.

Sorry for the problem, but hopefully it wont be a big fix.

Regards
//Erik
Reply all
Reply to author
Forward
0 new messages