xunit batch result uploads

tostercx's Avatar


19 Sep, 2014 12:24 AM


I'm having trouble with uploading xunit xml test results.

Sample 1 seems to give a 500 internal error. It was generated from a ctest converter tool so I'm not sure how accurate the schema is.
Sample 2 is from an actual xunit test. The server returns 200 OK but I don't see anything under the 'tests' tab:

  1. Support Staff 1 Posted by Feodor Fitsner on 19 Sep, 2014 12:43 AM

    Feodor Fitsner's Avatar

    Will take a look what's wrong with the parser. Thanks for sample XMLs.

  2. Support Staff 2 Posted by Feodor Fitsner on 22 Sep, 2014 11:39 PM

    Feodor Fitsner's Avatar

    How these XML reports were generated? What version of xUnit is that?

    Sample xUnit XML report could look like:

    <?xml version="1.0" encoding="utf-8"?>
    <assembly name="C:\Projects\GitHub\appvyr-xunit-tests\xUnit_x86_Clr4\bin\Debug\xUnit_x86_Clr4.dll" run-date="2014-09-22" run-time="16:36:45" configFile="C:\Tools\xUnit\xunit.console.clr4.x86.exe.Config" time="0.105" total="1" passed="1" failed="0" skipped="0" environment="32-bit .NET 4.0.30319.34014" test-framework="xUnit.net">
      <class time="0.105" name="xUnit_x86_Clr4.xUnit_x86_CLR4_Tests" total="1" passed="1" failed="0" skipped="0">
        <test name="xUnit_x86_Clr4.xUnit_x86_CLR4_Tests.TestA" type="xUnit_x86_Clr4.xUnit_x86_CLR4_Tests" method="TestA" result="Pass" time="0.105" />
  3. 3 Posted by tostercx on 23 Sep, 2014 07:39 AM

    tostercx's Avatar

    Oh.. I had the xUnits mixed up. Sorry for the trouble.

    The problem is I have a build script running with cmake / ctest. To import the results I found a tool that seemingly converts ctest xml to 'xUnit':

    Apparently there's a whole family of unit testing frameworks that go under this name... When searching for a sample to see how an xunit test result should look like I must have hit one of those (that's what's in sample 2).

    I guess I'll have to make a converter myself.
    Thanks for your time!

  4. tostercx closed this discussion on 24 Sep, 2014 06:08 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac