xml 1.1 not supported for junit results?

mvd's Avatar

mvd

29 Sep, 2016 08:06 PM

Hi,

I just discovered an issue when uploading junit testresults that I'd like to share. Here's what I do:

I use the latest version of Catch for my C++ unittests, which is able to generate junit xml files. When trying to upload it as described here (https://www.appveyor.com/docs/running-tests/#uploading-xml-test-results) I got a somewhat cryptic 500 Server error.

After a lot of trial and error I was able to narrow down the problem. Have a look at the two attached files: obviously uploading fails if the xml file has a header that identifies it as xml 1.1. Older versions of Catch do not write a header and thus do not have that problem. Not sure about other testing frameworks like gtest.

I think I can easily work around that problem, but wanted to share it nevertheless in case somebody else has the same problem.

Have a nice day

  1. 1 Posted by Ilya Finkelshte... on 29 Sep, 2016 08:43 PM

    Ilya Finkelshteyn's Avatar

    Thanks a lot for the catch about Catch :) Please watch this issue https://github.com/appveyor/ci/issues/1080.

    --ilya.

  2. 2 Posted by Ilya Finkelshte... on 08 Oct, 2016 07:48 PM

    Ilya Finkelshteyn's Avatar

    Sorry it appears to be difficult to fix. .NET which we rely on just cannot parse xml 1.1. See http://stackoverflow.com/questions/17231675/does-net-4-5-support-xm....

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.

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

Keyboard shortcuts

Generic

? 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