CDash icon indicating copy to clipboard operation
CDash copied to clipboard

Hyperlink text in test's custom NamedMeasurement

Open tjfulle opened this issue 4 years ago • 1 comments

I've add the following custom measurement to tests:

<NamedMeasurement type="text/string" name="Script">
  <Value><![CDATA[<a href="https://url>link</a>]]></Value>
</NamedMeasurement>

Script is a link to the actual test script. In the rendered test summary page, I see

Script <a href="https://url">link</a>

Ie, the link text appears, but it is not rendered.

Is there any way to format the Script - whether by a NamedMeasurement, or any other means - such that the link is active?

tjfulle avatar May 06 '20 12:05 tjfulle

This is an intentional security measure. At the moment, I don't think there is a way in CTest/CDash to achieve the exact behavior you're hoping for.

A couple thoughts:

  1. We do have support for attaching links to builds. To do this, write a a text file containing the destination of your hyperlink, and make sure its filename ends in ".url". Upload this file using ctest_upload.
  2. You can upload files and associate them with a test using the ATTACHED_FILES test property, but this doesn't currently support the ".url" trick mentioned above.

I'll leave this issue open as a feature request.

zackgalbreath avatar Jun 25 '20 13:06 zackgalbreath