tag:help.appveyor.com,2012-11-13:/discussions/problems/2146-xml-test-results-not-read-by-appveyorAppVeyor: Discussion 2018-10-19T08:17:12Ztag:help.appveyor.com,2012-11-13:Comment/368357152015-05-14T17:47:55Z2015-05-14T17:47:55Zxml test results not read by AppVeyor<div><p>Well, attached XML doesn't look like a valid <code>xunit</code>
test results.</p>
<p>Example <code>xunit</code> XML test results:</p>
<pre>
<code><assembly name="C:\Projects\GitHub\appvyr-xunit-tests\xUnit_x86_Clr4\bin\Debug\xUnit_x86_Clr4.dll" run-date="2014-11-28" run-time="14:11:45" configFile="C:\Tools\xUnit\xunit.console.clr4.x86.exe.Config" time="0.130" total="1" passed="0" failed="1" skipped="0" environment="32-bit .NET 4.0.30319.34014" test-framework="xUnit.net 1.9.2.1705">
<class time="0.130" name="xUnit_x86_Clr4.xUnit_x86_CLR4_Tests" total="1" passed="0" failed="1" skipped="0">
<test name="xUnit_x86_Clr4.xUnit_x86_CLR4_Tests.TestA" type="xUnit_x86_Clr4.xUnit_x86_CLR4_Tests" method="TestA" result="Fail" time="0.130">
<failure exception-type="Xunit.Sdk.EqualException">
<message>
Assert.Equal() Failure
Expected: 1
Actual: 2
</message>
<stack-trace> at xUnit_x86_Clr4.xUnit_x86_CLR4_Tests.TestA() in c:\Projects\GitHub\appvyr-xunit-tests\xUnit_x86_Clr4\xUnit_AnyCPU_CLR2_Tests.cs:line 15</stack-trace>
</failure>
</test>
</class>
</assembly></code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368357152015-05-14T17:49:29Z2015-05-14T17:49:29Zxml test results not read by AppVeyor<div><p>Using PowerShell you can easily iterate over test results in XML
and then push them using Build Worker API: <a href="http://www.appveyor.com/docs/build-worker-api#add-tests">http://www.appveyor.com/docs/build-worker-api#add-tests</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368357152015-05-14T18:54:07Z2015-05-14T18:54:08Zxml test results not read by AppVeyor<div><p>Well...we already have script in python doing so...yet I'd need
to put some extra code using Build Worker API to send outputs to
appveyor instead of console ;)</p>
<p>Too bad, but it's not hard to do so nvm.</p>
<p>Thanks for answers.</p></div>Mkkulagowski