Support CTest XML test results

Harry Mallon's Avatar

Harry Mallon

02 Jan, 2018 12:04 PM

CTest is part of CMake and it is pretty useful for cross platform C++ projects. Jenkins implemented support with an xsl transform to junit format.

Could it be integrated?

  1. 1 Posted by Ilya Finkelshte... on 03 Jan, 2018 02:16 AM

    Ilya Finkelshteyn's Avatar

    It is pretty easy to do this on-the-fly with information you provided. Please check sample yaml demonstrating how to do this. Here is build demonstrating this in work.
    Sure in real life you do not need to download Test.xml as it will be created by your tests, and also you can choose to check-in ctest-to-junit.xsl instead of loading remote file every time.

  2. 2 Posted by Harry Mallon on 03 Jan, 2018 11:27 AM

    Harry Mallon's Avatar

    Thanks for that Powershell magic Ilya. It’s working well for me here. It would be useful to have this information in the Appveyor docs perhaps (could also add info on googletest/gtest which makes junit compatible xml by default).

  3. 3 Posted by Ilya Finkelshte... on 03 Jan, 2018 10:28 PM

    Ilya Finkelshteyn's Avatar

    You are very welcome! Right, we have to add this. By the way, our site is open source so feel free to send a PR if you have time for this :)

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:26 AM.

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