Junit test details in Gitlab UI


This is more a question for my understanding, on how gitlab parses the junit report and visualizes it for the user in the pipelines UI. We use the CTest test suite and generate a junit xml form it. In the Tests tab, I get the individual test status, but when i click details, I get some thing like as shown in the screenshot:

I know that although there is a common junit xml schema, each test framework has its own variations and quirks. So my question is:

  1. Where is the information for the test details taken from
  2. How can we make sure that the test stdout and stderr are shown in this details view