NUnit plugin fails while converting to JUnit XML

19 views
Skip to first unread message

Renfield Meloy Goodman

unread,
Feb 27, 2015, 4:43:34 PM2/27/15
to jenkins...@googlegroups.com
My NUnit tests run fine, but when i'm trying to get my information to report i get an error:

NUnit 3.0
Jenkins 1.599

Tests pass but no report is generated.

C:\Program Files (x86)\Jenkins\workspace\nunitTest>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/nunitTest/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:
file:/C:/Program%20Files%20(x86)/Jenkins/workspace/NUnit%20Testie%20Test/temporary-junit-reports/temp-junit.xml;

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.  I have reached out to Jenkins and haven't heard anything.

Thanks
Ren



PostBuild.png
temp-junit.xml
TestResult.xml
Workspace.png
Reply all
Reply to author
Forward
0 new messages