tag:help.appveyor.com,2012-11-13:/discussions/problems/1235-uploading-fixie-testresults-as-nunit-or-xunit-gives-500-errorAppVeyor: Discussion 2018-08-25T02:03:14Ztag:help.appveyor.com,2012-11-13:Comment/355869752014-12-19T08:02:38Z2014-12-19T08:02:38ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>Could you drop a sample of test results file you are
uploading?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/355869752014-12-19T10:51:22Z2014-12-19T10:51:23ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>I've attached the testresults in the NUnit and XUnit formats.
Both cause the 500 error.</p></div>Lodewijktag:help.appveyor.com,2012-11-13:Comment/355869752014-12-19T19:34:30Z2014-12-19T19:34:30ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>Checked.</p>
<p><code>TestResult.AsXUnit.xml</code> - root element must be
<code><assembly></code>, not <code><assemblies></code>.
See this article: <a href=
"https://xunit.codeplex.com/wikipage?title=XmlFormat">https://xunit.codeplex.com/wikipage?title=XmlFormat</a></p>
<p><code>TestResult.AsNUnit.xml</code> - <code>test-suite</code>
element doesn't contain <code>type</code> attribute.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/355869752014-12-20T09:06:59Z2014-12-20T09:07:00ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>Ow, thanks for checking this. I'll contact the Fixie people
about fixing it.</p></div>Lodewijktag:help.appveyor.com,2012-11-13:Comment/355869752014-12-21T22:11:36Z2014-12-21T22:11:36ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>Looking at the NUnit/xunit code, I disagree.</p>
<p>First, NUnit test-suite nodes <em>do</em> get a type attribute.
See <a href=
"https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/Internal/Tests/TestSuite.cs#L212">
https://github.com/nunit/nunit/blob/master/src/NUnitFramework/frame...</a></p>
<p>Second, xUnit <em>does</em> include an outer assemblies node.
See <a href=
"https://github.com/xunit/xunit/blob/master/src/xunit.console/Program.cs#L146">
https://github.com/xunit/xunit/blob/master/src/xunit.console/Progra...</a></p>
<p>Frustrating that the xUnit documentation page isn't entirely
accurate to what the implementation is doing, but Fixie's output
was based on real xUnit / NUnit output as a guide.</p></div>Patrick Lioitag:help.appveyor.com,2012-11-13:Comment/355869752014-12-21T22:24:31Z2014-12-21T22:24:31ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>Yes I agree, but <code>TestResult.AsNUnit.xml</code> attached to
this thread does not have <code>type</code> attributes.</p>
<p>Regarding xUnit - I see it's 2.0 while AppVeyor parser is based
on 1.9.2. But thanks for pointing that out - will add support for
xUnit 2.0 XML output.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/355869752014-12-21T22:30:45Z2014-12-21T22:30:45ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>Btw, would be cool to add "native" AppVeyor integration to
console runner: <a href=
"https://github.com/plioi/fixie/tree/master/src/Fixie.Console">https://github.com/plioi/fixie/tree/master/src/Fixie.Console</a>
like it's done for TC.</p>
<p>Same as xUnit visitor: <a href=
"https://github.com/xunit/xunit/blob/master/src/xunit.console/Visitors/AppVeyorLogger.cs">
https://github.com/xunit/xunit/blob/master/src/xunit.console/Visito...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/355869752015-08-12T17:04:02Z2015-08-12T17:04:04ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>FWIW, Fixie 1.0.0.29 includes a fix for its own generation of
NUnit XML output, now compatible with the XSD used by the latest
stable NUnit (2.6.4).</p></div>Patrick Lioitag:help.appveyor.com,2012-11-13:Comment/355869752015-12-30T14:11:59Z2015-12-30T14:11:59ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>Hi,<br>
regarding xunit - is it still true that the 2.0 format is not
supported?<br>
I'm getting HTTP 500 when uploading the results.</p>
<p>AppVeyor Log:<br>
<a href="https://ci.appveyor.com/project/petrsvihlik/wopihost/build/1.0.114">
https://ci.appveyor.com/project/petrsvihlik/wopihost/build/1.0.114</a></p>
<p>Test results: attached (generated by "dnx test -xml
results.xml")</p></div>Petr Svihlik (rocky)tag:help.appveyor.com,2012-11-13:Comment/355869752015-12-31T04:50:59Z2015-12-31T04:50:59ZUploading Fixie Testresults as NUnit or xUnit gives 500 Error<div><p>Yes, xUnit 2.0 format is supported and attached XML is parsed
without any issue yielding 2 tests.</p></div>Feodor Fitsner