Uploading test results from google test lib output

martin.gerhardy's Avatar

martin.gerhardy

30 Oct, 2015 10:03 PM

running tests with:

  - cmd: tests.exe --gtest_output=xml:tests.xml

and using this in after_test:

  - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests.xml))

unfortunately nothing appears for the test results. Can someone help me with this?

  1. 1 Posted by martin.gerhardy on 30 Oct, 2015 10:09 PM

    martin.gerhardy's Avatar
  2. Support Staff 2 Posted by Feodor Fitsner on 31 Oct, 2015 11:58 PM

    Feodor Fitsner's Avatar

    Could you please attach here an XML results you are trying to import? Thank you!

  3. 3 Posted by martin.gerhardy on 01 Nov, 2015 06:51 AM

    martin.gerhardy's Avatar

    Here we go.

  4. Support Staff 4 Posted by Feodor Fitsner on 02 Nov, 2015 02:58 AM

    Feodor Fitsner's Avatar

    Well, it looks more like jUnit format. Try importing it as junit.

  5. 5 Posted by martin.gerhardy on 02 Nov, 2015 09:44 AM

    martin.gerhardy's Avatar
  6. Support Staff 6 Posted by Feodor Fitsner on 02 Nov, 2015 07:58 PM

    Feodor Fitsner's Avatar

    Cool! junit parser has been added just recently. Docs are updated now.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 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