Search code examples
c++qttestinggithub-actions

Getting Qt Test output in GitHub actions


Currently the only thing I can see is the executable exit code, so I can see if any tests failed or not, but I don't get any other output.

Is there a way to show something similar to what you see in Qt Creator when running tests?

I am using CMake and the Qt Test framework.


Solution

  • You can use -junitxml option to output test results to xml file(s) and use one of actions to watch detailed reports: