Customizing the junit xml or Jason output of ctest

Hello,

Is there a way to add custom fields to the junit or Jason output of a ctest run. For example, fields like the size of executable , ticket id etc . Wondering if such information can be made part of the report.

Thanks

1 Like

Since CMake 3.28 the test labels are exported. Maybe that helps ?

This certainly helps:) but I would still propose that measurements, meant for CDash, to be a part of junit xml. Think it would bring value to reporting.

1 Like

Aren’t those simply parsed by cdash from the stdout of the tests ?
(which would mean they are not known to ctest)

CTest reads them to know what images to upload for failures, so there is a non-zero awareness of them.